From 871677e809bfe7a7c7ded0749e8f2981e6c0e9f2 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 14 Feb 2020 22:52:09 +0100 Subject: [PATCH] Fixed compiler warnings related to const, unreachable code, and an empty translation unit. --- src/winmain.c | 10 ++++++++++ src/xspice/mif/mifutil.c | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/winmain.c b/src/winmain.c index d22bde1a3..c1498dee7 100644 --- a/src/winmain.c +++ b/src/winmain.c @@ -1641,4 +1641,14 @@ winmessage(char *new_msg) } + +#else /* HAS_WINGUI not defined */ +/* Prevent warning regarding empty translation unit */ +static void dummy(void) +{ + return; +} /* end of function dummy */ + + + #endif /* HAS_WINGUI */ diff --git a/src/xspice/mif/mifutil.c b/src/xspice/mif/mifutil.c index b1243afb9..6a98f1004 100644 --- a/src/xspice/mif/mifutil.c +++ b/src/xspice/mif/mifutil.c @@ -142,7 +142,6 @@ char *MIFgettok(char **s) } break; } - return NULL; /* should not happen */ } #if 0