]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Get rid of gcc warning regarding longjmp.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2006 20:30:12 +0000 (20:30 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:22 +0000 (12:13 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgl-check.c

index 1540793c23f56927a3f725a8fd2c96c879550785..3ce235d1d87e5d3f99770c3989451fe0b35348bb 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-04  Bruno Haible  <bruno@clisp.org>
+
+       * msgl-check.c (check_plural_eval): Declare 'distribution' as volatile,
+       so that it is unaffected by longjmp.
+
 2006-06-04  Bruno Haible  <bruno@clisp.org>
 
        * xgettext.c (arglist_parser_done): Cast length argument for format
index 8d3e484a9c8c9b49e5e8cb8d0fb7095ccd49b762..618a1a3c5bbb08a1f20570774bd05901ad3af6a9 100644 (file)
@@ -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)