aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logging.c4
-rw-r--r--logging.h3
2 files changed, 0 insertions, 7 deletions
diff --git a/logging.c b/logging.c
index 2582321..4330269 100644
--- a/logging.c
+++ b/logging.c
@@ -13,9 +13,6 @@ int logging = 0;
/* Do we want to silently drop all warnings? */
int quiet = 0;
-/* Number of times warn() has been called */
-int warned = 0;
-
/* Do we want informative messages as well as errors? */
int verbose = 0;
@@ -46,7 +43,6 @@ void message(const char *prefix, const char *fmt, va_list *arglist)
void warn(const char *fmt, ...)
{
va_list arglist;
- warned++;
va_start(arglist, fmt);
if (!quiet)
message("WARNING: ", fmt, &arglist);
diff --git a/logging.h b/logging.h
index efa682f..c01187b 100644
--- a/logging.h
+++ b/logging.h
@@ -7,9 +7,6 @@ extern int logging;
/* Do we want to silently drop all warnings? */
extern int quiet;
-/* Number of times warn() has been called */
-extern int warned;
-
/* Do we want informative messages as well as errors? */
extern int verbose;