]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid warnings for empty compilation units.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Jun 2003 20:40:02 +0000 (20:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:45 +0000 (12:10 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/canonicalize.c
gettext-tools/lib/error.c
gettext-tools/lib/strerror.c
gettext-tools/lib/strtoul.c

index 38982c4988868b4f83a8dd5779d0b5d3437c4cec..730b57953dd61080aae3bcbf0e48db3e064e708b 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-23  Bruno Haible  <bruno@clisp.org>
+
+       Avoid compilation units that are empty after preprocessing.
+       * canonicalize.c: Add dummy declaration.
+       * strerror.c: Likewise.
+       * strtoul.c: Likewise.
+       * error.c: Include <stdio.h> even if there's nothing to be compiled.
+
 2003-06-22  Bruno Haible  <bruno@clisp.org>
 
        Portability to mingw32.
index fbdca12119e1a2fc1f8b5fa957de0021aa270d9f..5b7713eb0a103773d6a6da86a35e39338e225043 100644 (file)
@@ -307,4 +307,10 @@ __canonicalize_file_name (const char *name)
 }
 weak_alias (__canonicalize_file_name, canonicalize_file_name)
 
+#else
+
+/* This declaration is solely to ensure that after preprocessing
+   this file is never empty.  */
+typedef int dummy;
+
 #endif
index 2d38d447a5f8af4d626519a5d4d7b374c259711c..d6b6bdd0e9cacf5410a2afd40934a51ab4a140e4 100644 (file)
 # include <config.h>
 #endif
 
-#if !HAVE_ERROR_AT_LINE
-
 #include <stdio.h>
 
+#if !HAVE_ERROR_AT_LINE
+
 #ifdef _LIBC
 # include <libintl.h>
 #else
index 8dfae38dc1769c74eabd61864d9dd31c0afa0726..931460fbb69d1db25822bfa488c46d2aaffdb01c 100644 (file)
@@ -43,4 +43,10 @@ strerror (int n)
     return sys_errlist[n];
 }
 
+#else
+
+/* This declaration is solely to ensure that after preprocessing
+   this file is never empty.  */
+typedef int dummy;
+
 #endif
index d39643d58ce0026a05faf9c1dee68a5511083fc5..97359104d1ed9f7ab636b3c75edffe05ec3b414c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2002-2003 Free Software Foundation, Inc.
 
    NOTE: The canonical source of this file is maintained with the GNU C Library.
    Bugs can be reported to bug-glibc@gnu.org.
 
 # include <strtol.c>
 
+#else
+
+/* This declaration is solely to ensure that after preprocessing
+   this file is never empty.  */
+typedef int dummy;
+
 #endif