From f6220a3c0d34f369f006ca5cff0b0cbf8712bef6 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 12 May 2013 12:54:11 +0000 Subject: [PATCH] Enable more warnings (thanks to Alexandre LAURENT) --- Makefile | 5 +++-- refresh.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 70a3c2c..52eaef2 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ runtests: test # nethogs_testsum -CFLAGS=-Wall -CXXFLAGS=-Wall +CFLAGS=-Wall -Wextra +CXXFLAGS=-Wall -Wextra OBJS=packet.o connection.o process.o refresh.o decpcap.o cui.o inode2prog.o conninode.o devices.o .PHONY: tgz @@ -72,3 +72,4 @@ clean: rm -f $(OBJS) rm -f nethogs rm -f test + rm -f decpcap_test diff --git a/refresh.cpp b/refresh.cpp index 19341d0..5195983 100644 --- a/refresh.cpp +++ b/refresh.cpp @@ -28,7 +28,7 @@ extern bool needrefresh; extern unsigned refreshdelay; -void alarm_cb (int i) +void alarm_cb (int /*i*/) { needrefresh = true; //cout << "Setting needrefresh\n";