Fix warnings. Add -Werror so they break the build in future.

This commit is contained in:
Oliver Jowett 2015-01-04 20:08:33 +00:00
parent 14a8e71629
commit 76474f58ab
3 changed files with 12 additions and 1 deletions

View file

@ -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

6
debian/changelog vendored
View file

@ -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 <oliver@mutability.co.uk> 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

View file

@ -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;
}
//
//=========================================================================