[CMake] conflicting types for built-in function 'snprintf'
Hendrik Sattler
post at hendrik-sattler.de
Wed Jul 8 08:57:32 EDT 2009
Zitat von Eric Noulard <eric.noulard at gmail.com>:
> It works for me and the CMakeFiles/CMakeOutput.log reads:
>
> Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o
> /usr/bin/gcc -DWHAT=ever -DCHECK_FUNCTION_EXISTS=snprintf
> -fno-builtin -o
> CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -c
> /home/eric/CMake/cmake-V2_6/share/cmake-2.6/Modules/CheckFunctionExists.c
>
> which is the expect command line.
It's not. The OP use additional -W parameters like -Werror.
Actually, the test should be made work with -Wall -Wextra -Werror.
HS
More information about the CMake
mailing list