Fixed problems on systems using newer GLIB and GCC (2.96) which no

longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
This commit is contained in:
ppokorny
2001-05-15 01:55:59 +00:00
parent 3e4ce08d43
commit 3fff6381b0
17 changed files with 110 additions and 60 deletions
+10 -10
View File
@@ -1,13 +1,12 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "../shared/debug.h"
#include "shared/debug.h"
#include "drivers/lcd.h"
@@ -152,20 +151,21 @@ no_screen_screen (int timer)
int
goodbye_screen ()
{
char
*b20 = " ", *t20 = " Thanks for using ",
char *b20 = " ";
char *t20 = " Thanks for using ";
#ifdef LINUX
*l20 = " LCDproc and Linux! ",
char *l20 = " LCDproc and Linux! ";
#else
*l20 = " LCDproc! ",
char *l20 = " LCDproc! ";
#endif
*b16 = " ", *t16 = "Thanks for using",
char *b16 = " ";
char *t16 = "Thanks for using";
#ifdef LINUX
*l16 = " LCDproc+Linux! ",
char *l16 = " LCDproc+Linux! ";
#else
*l16 = " LCDproc! ",
char *l16 = " LCDproc! ";
#endif
*nil = "";
lcd.clear ();