3 ms·
No warnings (-W -Wall) with gcc 4.2.1 on OSX :/ gcc 4.8.4 on Ubuntu 14.04 Trusty still gives no warnings, but gives a different result: $ gcc -W -Wall x.c -
by akkartik 10y ago
No warnings (-W -Wall) with gcc 4.2.1 on OSX :/
gcc 4.8.4 on Ubuntu 14.04 Trusty still gives no warnings, but gives a different result:
$ gcc -W -Wall x.c -lm
$ a.out
(0.99)^100: 0.366032
(0.99)^100: inf
clang 3.4 on Ubuntu 14.04:
$ clang -W -Wall -fsanitize=undefined x.c -lm
$ a.out
(0.99)^100: 0.366032
(0.99)^100: inf
:(