Closed andreasbaumann closed 7 years ago
Missing a #include <inttypes.h>
?
Another idea comes from /usr/include/inttypes.h
:
/* The ISO C99 standard specifies that these macros must only be
defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS
I put a #define __STDC_FORMAT_MACROS before including
more warnings:
/opt/eurospider/strus/include/strus/numericVariant.hpp: In constructor 'strus::NumericVariant::String::String(const strus::NumericVariant&)':
/opt/eurospider/strus/include/strus/numericVariant.hpp:96: warning: ISO C++ does not support the '%lf' gnu_printf format
/opt/eurospider/strus/include/strus/numericVariant.hpp:96: warning: ISO C++ does not support the '%lf' gnu_printf format
This is a GNUism and should not be used!
Replaced %lf with %f
thanks.
what about:
In file included from /home/build/strus/src/utils/cstring.c:1:
/home/build/strus/include/private/cstring.h:8:1: warning: C++ style comments are not allowed in ISO C90
/home/build/strus/include/private/cstring.h:8:1: warning: (this will be reported only once per input file)
Builds.
gcc is 4.4.7 (Centos 6):
There is also a warning: