Fix warnings. Add -Werror so they break the build in future.
This commit is contained in:
parent
14a8e71629
commit
76474f58ab
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ SHAREDIR=$(PREFIX)/share/$(PROGNAME)
|
||||||
EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
|
EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
|
||||||
endif
|
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=-lpthread -lm -lrt
|
||||||
LIBS_RTL=`pkg-config --libs librtlsdr`
|
LIBS_RTL=`pkg-config --libs librtlsdr`
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -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
|
dump1090-mutability (1.10.3010.14mu-8) unstable; urgency=medium
|
||||||
|
|
||||||
* Version-only rebuild to reflect the upstream dump1090 version we
|
* Version-only rebuild to reflect the upstream dump1090 version we
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
//
|
//
|
||||||
#include "dump1090.h"
|
#include "dump1090.h"
|
||||||
|
|
||||||
|
static int verbose_device_search(char *s);
|
||||||
|
|
||||||
//
|
//
|
||||||
// ============================= Utility functions ==========================
|
// ============================= Utility functions ==========================
|
||||||
//
|
//
|
||||||
|
@ -255,6 +258,8 @@ int modesInitRTLSDR(void) {
|
||||||
rtlsdr_reset_buffer(Modes.dev);
|
rtlsdr_reset_buffer(Modes.dev);
|
||||||
fprintf(stderr, "Gain reported by device: %.2f\n",
|
fprintf(stderr, "Gain reported by device: %.2f\n",
|
||||||
rtlsdr_get_tuner_gain(Modes.dev)/10.0);
|
rtlsdr_get_tuner_gain(Modes.dev)/10.0);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
Loading…
Reference in a new issue