Commit c0157e8a authored by Sergei Golubchik's avatar Sergei Golubchik

compiler warnings on winx86

parent 10a2bac7
...@@ -54,7 +54,7 @@ pthread_handler_t test_wt(void *arg) ...@@ -54,7 +54,7 @@ pthread_handler_t test_wt(void *arg)
my_rnd_init(&rand, (ulong)(intptr)&m, id); my_rnd_init(&rand, (ulong)(intptr)&m, id);
if (kill_strategy == YOUNGEST) if (kill_strategy == YOUNGEST)
thds[id].thd.weight= ~my_getsystime(); thds[id].thd.weight= (ulong volatile)~my_getsystime();
if (kill_strategy == LOCKS) if (kill_strategy == LOCKS)
thds[id].thd.weight= 0; thds[id].thd.weight= 0;
...@@ -104,7 +104,7 @@ pthread_handler_t test_wt(void *arg) ...@@ -104,7 +104,7 @@ pthread_handler_t test_wt(void *arg)
if (kill_strategy == LOCKS) if (kill_strategy == LOCKS)
thds[id].thd.weight= 0; thds[id].thd.weight= 0;
if (kill_strategy == YOUNGEST) if (kill_strategy == YOUNGEST)
thds[id].thd.weight= ~my_getsystime(); thds[id].thd.weight= (ulong volatile)~my_getsystime();
} }
else if (kill_strategy == LOCKS) else if (kill_strategy == LOCKS)
thds[id].thd.weight++; thds[id].thd.weight++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment