Problem: Binaries built with implicit types for functions and variables might not work in environments where pointers and integers are different sizes Fix By: Compiling with the warnings enabled and then fixing the warnings Waive If: Enabling the warnings would generate false positives Example: FAIL: -Wimplicit-int not enabled FAIL: -Wimplicit-function-declaration not enabled
This test checks to see that gcc’s -Wimplicit-int and -Wimplicit-function-declaration options have been enabled when the binary built. These options are normally enabled when the -Wall option is used (see The warnings test), but they can also be enabled and disabled individually.
It is important to enable these warnings and then fix any code that triggers them. Otherwise any code that runs in an environment where a pointer is not the same size as an integer is likely to run into problems where the two are used interchangeably.
If necessary the test can be disabled via the --skip-implicit-values option and re-enabled via the --test-implicit-values option.