while compiling rrdtool-1.4.7 under linux with gcc-4.4.5, I spotted those
warnings
In file included from rrd_i18n.h:18,
from rrd_tool.c:21:
gettext.h:176:6: warning: "__STRICT_ANSI__" is not defined
gettext.h:200:5: warning: "__STRICT_ANSI__" is not defined
gettext.h:215:6: warning: "__STRICT_ANSI__" is not defined
gettext.h:246:5: warning: "__STRICT_ANSI__" is not defined
gettext.h:261:6: warning: "__STRICT_ANSI__" is not defined
In the light of this gnulib thread, adding a defined is the way to fix that:
http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00173.html
I made a patch for the 1.4 branch, it compile fine. Apply with -p3 to the
package.
Same change should work for 1.3 and trunk, untested by me.
Those warning are already reported as
http://oss.oetiker.ch/rrdtool-trac/ticket/337
I know gettext original libgettextpo.h.in is still unchanged (but does not emit
this warning)
Thank for rrdtool.
Gilles
Index: branches/1.4/program/src/gettext.h
===================================================================
--- branches/1.4/program/src/gettext.h (révision 2287)
+++ branches/1.4/program/src/gettext.h (copie de travail)
@@ -170,7 +170,7 @@
#include <string.h>
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \
+ (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
/* || __STDC_VERSION__ >= 199901L */ )
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers