------- Comment #14 from kargl at gcc dot gnu dot org 2007-06-23 17:56 ------- (In reply to comment #13) > (In reply to comment #11) > > (1) Try -Wformat > > "-Wall" includes "-Wformat" according to gcc.info. See comment 7 for the > command line I used: > /* /usr/test/bin/gcc -Wall -Wconversion -o math_test_7 math_test_7.c */
mobile:kargl[204] cc -o z -Wformat m.c -lm m.c: In function 'main': m.c:21: warning: format '%d' expects type 'int', but argument 2 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 3 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 4 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 5 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 6 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 2 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 3 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 4 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 5 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 6 has type 'double' mobile:kargl[205] cc -o z -Wall m.c -lm m.c: In function 'main': m.c:9: warning: implicit declaration of function 'abs' m.c:21: warning: format '%d' expects type 'int', but argument 2 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 3 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 4 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 5 has type 'double' m.c:21: warning: format '%d' expects type 'int', but argument 6 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 2 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 3 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 4 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 5 has type 'double' m.c:22: warning: format '%d' expects type 'int', but argument 6 has type 'double' m.c is your code in comment #7 > > > > (3) There is an expectation someone writing C might actually > > adhere to the Standard > > From time to time that does not always occur. See here: >http://gcc.gnu.org/bugzilla/buglist.cgi?emailreporter1=1&emailtype1=substring&[EMAIL > PROTECTED] I'm not sure what you're trying to demonstate. Bug reports associated with me are related to Fortran not C. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32448