summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsspitzer%netscape.com <devnull@localhost>1999-06-26 04:36:48 +0000
committersspitzer%netscape.com <devnull@localhost>1999-06-26 04:36:48 +0000
commitb3a319749c53b5585be614c0a6545287637dfb80 (patch)
tree6e55fff4e784764a03ecd8cf5301776123d2d4ae
parent56d2b92592a8b147cea2f87374b31f80c53d5408 (diff)
downloadnss-hg-b3a319749c53b5585be614c0a6545287637dfb80.tar.gz
fix the "ANSI C forbids an empty source file" warning.
of course this introduce the "defined but not used" warning. I'll fix that when later.
-rw-r--r--dbm/src/memmove.c3
-rw-r--r--dbm/src/snprintf.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/dbm/src/memmove.c b/dbm/src/memmove.c
index 8a1942f77..c4f9ff02e 100644
--- a/dbm/src/memmove.c
+++ b/dbm/src/memmove.c
@@ -145,3 +145,6 @@ done:
#endif
}
#endif /* no __sgi */
+
+/* Some compilers don't like an empty source file. */
+static int dummy = 0;
diff --git a/dbm/src/snprintf.c b/dbm/src/snprintf.c
index 57ebfbfdd..5c30bd3f8 100644
--- a/dbm/src/snprintf.c
+++ b/dbm/src/snprintf.c
@@ -68,3 +68,6 @@ vsnprintf(str, n, fmt, ap)
}
#endif /* HAVE_SNPRINTF */
+
+/* Some compilers don't like an empty source file. */
+static int dummy;