diff options
author | Bruno Haible <bruno@clisp.org> | 2003-06-23 20:40:02 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:45 +0200 |
commit | fbc687bb1144cb181722662ef41b57994f29f275 (patch) | |
tree | 48f0312e97f285d58181d2e1314e3749435d7d1f | |
parent | 8264096326ccf1ecfcbba78108e0a672776d045b (diff) | |
download | external_gettext-fbc687bb1144cb181722662ef41b57994f29f275.zip external_gettext-fbc687bb1144cb181722662ef41b57994f29f275.tar.gz external_gettext-fbc687bb1144cb181722662ef41b57994f29f275.tar.bz2 |
Avoid warnings for empty compilation units.
-rw-r--r-- | gettext-tools/lib/ChangeLog | 8 | ||||
-rw-r--r-- | gettext-tools/lib/canonicalize.c | 6 | ||||
-rw-r--r-- | gettext-tools/lib/error.c | 4 | ||||
-rw-r--r-- | gettext-tools/lib/strerror.c | 6 | ||||
-rw-r--r-- | gettext-tools/lib/strtoul.c | 8 |
5 files changed, 29 insertions, 3 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 38982c4..730b579 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -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. diff --git a/gettext-tools/lib/canonicalize.c b/gettext-tools/lib/canonicalize.c index fbdca12..5b7713e 100644 --- a/gettext-tools/lib/canonicalize.c +++ b/gettext-tools/lib/canonicalize.c @@ -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 diff --git a/gettext-tools/lib/error.c b/gettext-tools/lib/error.c index 2d38d44..d6b6bdd 100644 --- a/gettext-tools/lib/error.c +++ b/gettext-tools/lib/error.c @@ -20,10 +20,10 @@ # include <config.h> #endif -#if !HAVE_ERROR_AT_LINE - #include <stdio.h> +#if !HAVE_ERROR_AT_LINE + #ifdef _LIBC # include <libintl.h> #else diff --git a/gettext-tools/lib/strerror.c b/gettext-tools/lib/strerror.c index 8dfae38..931460f 100644 --- a/gettext-tools/lib/strerror.c +++ b/gettext-tools/lib/strerror.c @@ -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 diff --git a/gettext-tools/lib/strtoul.c b/gettext-tools/lib/strtoul.c index d39643d..9735910 100644 --- a/gettext-tools/lib/strtoul.c +++ b/gettext-tools/lib/strtoul.c @@ -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. @@ -28,4 +28,10 @@ # include <strtol.c> +#else + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; + #endif |