cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/lib/quotearg.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/lib/quotearg.c
Date: Mon, 03 Oct 2005 22:35:49 -0400

Index: ccvs/lib/quotearg.c
diff -u ccvs/lib/quotearg.c:1.4 ccvs/lib/quotearg.c:1.5
--- ccvs/lib/quotearg.c:1.4     Mon Sep 19 21:26:13 2005
+++ ccvs/lib/quotearg.c Tue Oct  4 02:34:54 2005
@@ -586,7 +586,12 @@
 
   if (nslots <= n0)
     {
-      unsigned int n1 = n0 + 1;
+      /* FIXME: technically, the type of n1 should be `unsigned int',
+        but that evokes an unsuppressible warning from gcc-4.0.1 and
+        older.  If gcc ever provides an option to suppress that warning,
+        revert to the original type, so that the test in xalloc_oversized
+        is once again performed only at compile time.  */
+      size_t n1 = n0 + 1;
 
       if (xalloc_oversized (n1, sizeof *slotvec))
        xalloc_die ();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]