]> Savannah Git Hosting - gnulib.git/commitdiff
trim: Fix trim_trailing result in multibyte locales.
authorBruno Haible <bruno@clisp.org>
Sun, 2 Apr 2023 19:31:36 +0000 (21:31 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 2 Apr 2023 19:33:42 +0000 (21:33 +0200)
* lib/trim.c (IF_LINT): Remove macro.

ChangeLog
lib/trim.c

index 30e39d757afafda1a08abde71ce30db5d3701b9f..2993b1561f88ecd67d39427e4d335a0bdf344bb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        trim: Fix trim_trailing result in multibyte locales.
        * lib/trim.c (trim2): Simplify algorithm for trim_trailing in multibyte
        locales, to use 2 instead of 3 states.
+       (IF_LINT): Remove macro.
 
        trim: Add tests.
        * tests/test-trim.c: New file.
index ed643cd20cfa735b3ee7e20b46329d110245ebe4..d33dd13a5c1e09a6f90035323f840a8df3c421e0 100644 (file)
 #include "mbiter.h"
 #include "xalloc.h"
 
-/* Use this to suppress gcc's "...may be used before initialized" warnings. */
-#if defined GCC_LINT || defined lint
-# define IF_LINT(Code) Code
-#else
-# define IF_LINT(Code) /* empty */
-#endif
-
 char *
 trim2 (const char *s, int how)
 {