From 072edcf1d9abb2e8246a6e74415487a40bc627c2 Mon Sep 17 00:00:00 2001 From: Arne Goedeke <el@laramies.com> Date: Wed, 26 Feb 2014 11:29:32 +0100 Subject: [PATCH] removed some declarations of undefined static functions --- src/backend.cmod | 4 ++++ src/lexer.h | 2 ++ src/modules/Parser/xml.cmod | 1 - src/modules/_Charset/charsetmod.h | 4 ---- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/backend.cmod b/src/backend.cmod index fa217cfe71..0639d284e9 100644 --- a/src/backend.cmod +++ b/src/backend.cmod @@ -204,8 +204,12 @@ void cfTimerCallback(CFRunLoopTimerRef timer, void * info); #endif /* BACKEND_USES_CFRUNLOOP */ static int backend_do_call_outs(struct Backend_struct *me); +#ifdef PIKE_DEBUG static void backend_verify_call_outs(struct Backend_struct *me); +#endif +#ifdef DO_PIKE_CLEANUP static void backend_cleanup(); +#endif struct Backend_struct *get_backend_for_fd(int fd) { diff --git a/src/lexer.h b/src/lexer.h index 70df5a46b1..aa93ae0b7e 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -430,7 +430,9 @@ static struct pike_string *readstring(struct lex *lex) +#if LEXDEBUG>4 static int low_yylex(struct lex *lex, YYSTYPE *); +#endif /* LEXDEBUG>4 */ int yylex(struct lex *lex, YYSTYPE *yylval) #if LEXDEBUG>4 { diff --git a/src/modules/Parser/xml.cmod b/src/modules/Parser/xml.cmod index 45824b1adf..13471c4c2b 100644 --- a/src/modules/Parser/xml.cmod +++ b/src/modules/Parser/xml.cmod @@ -1122,7 +1122,6 @@ static inline int xmlread(int z, int UNUSED(line)) static void sys(void); static int low_parse_dtd(void); -static void free_xmldata(void); static void simple_readname(void); static int simple_readname_period(void); static void simple_read_system_literal(void); diff --git a/src/modules/_Charset/charsetmod.h b/src/modules/_Charset/charsetmod.h index 9535ecc2c1..53f114da75 100644 --- a/src/modules/_Charset/charsetmod.h +++ b/src/modules/_Charset/charsetmod.h @@ -10,10 +10,6 @@ #include "global.h" #include "stralloc.h" -static void DECLSPEC(noreturn) transcode_error_va ( - struct pike_string *str, ptrdiff_t pos, struct pike_string *charset, - int encode, const char *reason, va_list args) ATTRIBUTE((noreturn)); - void DECLSPEC(noreturn) transcode_error ( struct pike_string *str, ptrdiff_t pos, struct pike_string *charset, int encode, const char *reason, ...); -- GitLab