When building a test suite using greatest.h, it's possible to get a shadowing warning about exp's use. This is the name of a function available in math.h as well.
I've been unable to produce this on GCC versions other than 4.6.3.
Greatest Version: 1.4.0
GCC output:
$ gcc -Wshadow greatest_exp_repro.c -o ger
greatest_exp_repro.c: In function 'greatest_do_assert_equal_t':
greatest_exp_repro.c:14:1: warning: declaration of 'exp' shadows a global declaration [-Wshadow]
greatest_exp_repro.c: In function 'greatest_string_equal_cb':
greatest_exp_repro.c:14:1: warning: declaration of 'exp' shadows a global declaration [-Wshadow]
greatest_exp_repro.c: In function 'greatest_memory_equal_cb':
greatest_exp_repro.c:14:1: warning: declaration of 'exp' shadows a global declaration [-Wshadow]
When building a test suite using
greatest.h
, it's possible to get a shadowing warning aboutexp
's use. This is the name of a function available inmath.h
as well.I've been unable to produce this on GCC versions other than 4.6.3.
Greatest Version: 1.4.0
GCC output:
Example File:
System Information:
GCC version information: