X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=test%2Fnestedpromise.c;h=70de8d6949aea586ba1c64c3dff0f9e0c2244bb1;hp=e87cce92fd5cb5d22a18e8d43ac19b8841c67930;hb=8251cec4d80742ccb111930c6def56448cfcece0;hpb=f8417a2a7b21e1b14fb8ce905640f96aafdf8177 diff --git a/test/nestedpromise.c b/test/nestedpromise.c index e87cce9..70de8d6 100644 --- a/test/nestedpromise.c +++ b/test/nestedpromise.c @@ -11,7 +11,7 @@ atomic_int y; atomic_int z; static void a(void *obj) { - atomic_load_explicit(&z, memory_order_relaxed); // this is only for schedule control + (void)atomic_load_explicit(&z, memory_order_relaxed); // this is only for schedule control int t1=atomic_load_explicit(&x, memory_order_relaxed); atomic_store_explicit(&y, 1, memory_order_relaxed); printf("t1=%d\n",t1);