Clang noted the following on FreeBSD-10/amd64 using the current master
tarball:

Making check in threads
make  opal_thread opal_condition
  CC       opal_thread.o
  CCLD     opal_thread
  CC       opal_condition.o
/home/phargrov/OMPI/openmpi-master-freebsd10-amd64/openmpi-dev-1118-gdc80863/test/threads/opal_condition.c:72:
61: warning: format specifies type 'long' but the argument has type 'int'
[-Wformat]
    fprintf(stderr, "thr1: time per iteration: %ld usec\n", (c2 - c1) /
TEST_COUNT);
                                               ~~~
 ^~~~~~~~~~~~~~~~~~~~~~
                                               %d
/home/phargrov/OMPI/openmpi-master-freebsd10-amd64/openmpi-dev-1118-gdc80863/test/threads/opal_condition.c:89:
61: warning: format specifies type 'long' but the argument has type 'int'
[-Wformat]
    fprintf(stderr, "thr2: time per iteration: %ld usec\n", (c2 - c1) /
TEST_COUNT);
                                               ~~~
 ^~~~~~~~~~~~~~~~~~~~~~
                                               %d
2 warnings generated.


-Paul

-- 
Paul H. Hargrove                          [email protected]
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to