From 76474f58ab46d0cd29681a9d8a976a4ebcf3d8c6 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 4 Jan 2015 20:08:33 +0000 Subject: [PATCH] Fix warnings. Add -Werror so they break the build in future. --- Makefile | 2 +- debian/changelog | 6 ++++++ dump1090.c | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e0f2c0..698cd15 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ SHAREDIR=$(PREFIX)/share/$(PROGNAME) EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\" endif -CFLAGS+=-O2 -g -Wall -W `pkg-config --cflags librtlsdr` +CFLAGS+=-O2 -g -Wall -Werror -W `pkg-config --cflags librtlsdr` LIBS=-lpthread -lm -lrt LIBS_RTL=`pkg-config --libs librtlsdr` CC=gcc diff --git a/debian/changelog b/debian/changelog index 50b30fb..8cf5eb2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dump1090-mutability (1.10.3010.14mu-9) UNRELEASED; urgency=medium + + * Fix warnings. Add -Werror so they break the build in future. + + -- Oliver Jowett Sun, 04 Jan 2015 20:08:01 +0000 + dump1090-mutability (1.10.3010.14mu-8) unstable; urgency=medium * Version-only rebuild to reflect the upstream dump1090 version we diff --git a/dump1090.c b/dump1090.c index dfbc7af..a481e44 100644 --- a/dump1090.c +++ b/dump1090.c @@ -28,6 +28,9 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // #include "dump1090.h" + +static int verbose_device_search(char *s); + // // ============================= Utility functions ========================== // @@ -255,6 +258,8 @@ int modesInitRTLSDR(void) { rtlsdr_reset_buffer(Modes.dev); fprintf(stderr, "Gain reported by device: %.2f\n", rtlsdr_get_tuner_gain(Modes.dev)/10.0); + + return 0; } // //=========================================================================