From 00934643929a433aa35f19854f594ac7083aab69 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 24 Jul 2011 10:33:28 +0000 Subject: [PATCH] added -Wall and fixed compilation error --- src/httpd/Makefile.am | 2 +- src/lib/Makefile.am | 2 +- src/lib/Makefile.in | 2 +- src/lib/lmsensor.c | 2 +- src/plib/Makefile.am | 2 +- src/plib/Makefile.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/httpd/Makefile.am b/src/httpd/Makefile.am index 34c10fc..62cb52a 100644 --- a/src/httpd/Makefile.am +++ b/src/httpd/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ +AM_CPPFLAGS = -pedantic -Wall -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/lib \ $(LUA_CFLAGS)\ diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index a319b98..a60d35a 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,6 +1,6 @@ noinst_LIBRARIES = libpsensor.a -libpsensor_a_CFLAGS = -Werror +libpsensor_a_CFLAGS = -Wall -Werror libpsensor_a_SOURCES = \ amd.h \ diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index e5721d2..c75cfbe 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -226,7 +226,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libpsensor.a -libpsensor_a_CFLAGS = -Werror $(am__append_5) +libpsensor_a_CFLAGS = -Wall -Werror $(am__append_5) libpsensor_a_SOURCES = amd.h cpu.h measure.h measure.c color.h color.c \ psensor.h psensor.c hdd.h hdd.c nvidia.h lmsensor.h lmsensor.c \ $(am__append_1) $(am__append_4) $(am__append_6) diff --git a/src/lib/lmsensor.c b/src/lib/lmsensor.c index 48850f1..3af7c78 100644 --- a/src/lib/lmsensor.c +++ b/src/lib/lmsensor.c @@ -172,7 +172,7 @@ struct psensor **lmsensor_psensor_list_add(struct psensor **sensors, int i; if (!init_done) - return ; + return NULL; result = sensors; while ((chip = sensors_get_detected_chips(NULL, &chip_nr))) { diff --git a/src/plib/Makefile.am b/src/plib/Makefile.am index dbd537e..c626da0 100644 --- a/src/plib/Makefile.am +++ b/src/plib/Makefile.am @@ -4,7 +4,7 @@ AM_CPPFLAGS = \ noinst_LIBRARIES = libplib.a -libplib_a_CFLAGS = -pedantic +libplib_a_CFLAGS = -pedantic -Wall -Werror libplib_a_SOURCES = \ url.c url.h \ diff --git a/src/plib/Makefile.in b/src/plib/Makefile.in index f25e7f7..302a5e1 100644 --- a/src/plib/Makefile.in +++ b/src/plib/Makefile.in @@ -213,7 +213,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src noinst_LIBRARIES = libplib.a -libplib_a_CFLAGS = -pedantic +libplib_a_CFLAGS = -pedantic -Wall -Werror libplib_a_SOURCES = \ url.c url.h \ plib_io.h plib_io.c -- 2.7.4