Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22113

gcc -W -Wall -O -pedantic -std=c99 vs clang with same options

$
0
0

Trying to output a pointer's address in decimal form using the %zu conversion specifier. Runs okay as expected except that GCC warns

format ‘%zu’ expects type ‘size_t’, but argument 4 has type ‘long int *’

GCC options used are shown in the question. GCC still warns without any options set (other than -std=c99). clang however, does not issue any warnings at all with the same options. This is on OS X 10.7. Just curious why clang isn't issuing any warnings? Is GCC "better" than clang for debugging/compiling?


Viewing all articles
Browse latest Browse all 22113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>