From b54f45eccd2fe09685ece0ee2506e6c7e4024700 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 26 Oct 2003 23:04:30 +0000 Subject: [PATCH] Fixed gcc "defined but not used" warnings. --- src/sbbs3/main.cpp | 2 ++ src/sbbs3/services.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 6d7818f714..fa06d185cf 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -300,12 +300,14 @@ DLLCALL js_DescribeSyncConstructor(JSContext* cx, JSObject* obj, const char* str #ifdef _DEBUG +#if 0 static char* server_prop_desc[] = { "server name and version number" ,"detailed version/build information" ,NULL }; +#endif static const char* method_array_name = "_method_list"; diff --git a/src/sbbs3/services.c b/src/sbbs3/services.c index 1b9fc60908..4f24a5b932 100644 --- a/src/sbbs3/services.c +++ b/src/sbbs3/services.c @@ -582,6 +582,8 @@ js_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report) lprintf(LOG_ERR,"%04d %s !JavaScript %s%s%s: %s",sock,prot,warning,file,line,message); } +#if 0 + /* Server Object Properites */ enum { SERVER_PROP_TERMINATED @@ -654,6 +656,8 @@ static JSClass js_server_class = { ,JS_FinalizeStub /* finalize */ }; +#endif + /* Server Methods */ static JSBool -- GitLab