From: Bruno Haible Date: Fri, 9 Jun 2006 20:30:12 +0000 (+0000) Subject: Get rid of gcc warning regarding longjmp. X-Git-Tag: v0.15~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=348150d2f4f7ee5a58fa41b371f450223e74a467;p=thirdparty%2Fgettext.git Get rid of gcc warning regarding longjmp. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 1540793c2..3ce235d1d 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2006-06-04 Bruno Haible + + * msgl-check.c (check_plural_eval): Declare 'distribution' as volatile, + so that it is unaffected by longjmp. + 2006-06-04 Bruno Haible * xgettext.c (arglist_parser_done): Cast length argument for format diff --git a/gettext-tools/src/msgl-check.c b/gettext-tools/src/msgl-check.c index 8d3e484a9..618a1a3c5 100644 --- a/gettext-tools/src/msgl-check.c +++ b/gettext-tools/src/msgl-check.c @@ -63,7 +63,7 @@ check_plural_eval (struct expression *plural_expr, /* Do as if the plural formula assumes a value N infinitely often if it assumes it at least 5 times. */ #define OFTEN 5 - unsigned char *distribution; + unsigned char * volatile distribution; /* Allocate a distribution array. */ if (nplurals_value <= 100)