* lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
+2011-05-28  Jim Meyering  <meyering@redhat.com>
+
+       trim: avoid a warning from -O2 -Wstrict-overflow
+       * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
+
 2011-05-29  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Fix bug in yesterday's commit.
 
       /* Trim trailing whitespaces. */
       if (how != TRIM_LEADING)
         {
-          int state = 0;
+          unsigned int state = 0;
           char *r IF_LINT (= NULL); /* used only while state = 2 */
 
           mbi_init (i, d, strlen (d));
 
   return d;
 }
-