From 94c0bfffcb9b79370af3e445a813131359a806e4 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Mon, 19 May 2014 15:22:08 -0700 Subject: [PATCH] Another try at portability. Don't do -Werror. While probably the best thing to do from a code hygeine standpoint, it's too painful to try to get right for now. Fixes #174 (second try). --- configure.ac | 6 ++---- examples/Makefile.in | 4 ++-- src/Makefile.in | 10 +++++----- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 5bbc0dd..4650755 100644 --- a/configure.ac +++ b/configure.ac @@ -20,11 +20,9 @@ AC_PROG_RANLIB AC_PROG_LN_S AC_PROG_LIBTOOL -# Add -Wall -Werror if we are using GCC. -# We also need -Wno-deprecated-declarations, primarily because on MacOS, daemon(3) -# is deprecated starting from MacOS 10.5. +# Add -Wall if we are using GCC. if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror -Wno-deprecated-declarations" + CFLAGS="$CFLAGS -Wall" fi # Checks for header files. diff --git a/examples/Makefile.in b/examples/Makefile.in index adab41e..7c79d15 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -285,11 +285,11 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ mic_SOURCES = mic.c -mic_CFLAGS = -g -Wall +mic_CFLAGS = -g mic_LDADD = ../src/libiperf.la mic_LDFLAGS = -g mis_SOURCES = mis.c -mis_CFLAGS = -g -Wall +mis_CFLAGS = -g mis_LDADD = ../src/libiperf.la mis_LDFLAGS = -g all: all-am diff --git a/src/Makefile.in b/src/Makefile.in index 95c68b8..0f4f6ae 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -587,7 +587,7 @@ libiperf_la_SOURCES = \ # Specify the sources and various flags for the iperf binary iperf3_SOURCES = main.c -iperf3_CFLAGS = -g -Wall +iperf3_CFLAGS = -g iperf3_LDADD = libiperf.la iperf3_LDFLAGS = -g @@ -596,21 +596,21 @@ iperf3_LDFLAGS = -g iperf3_profile_SOURCES = main.c \ $(libiperf_la_SOURCES) -iperf3_profile_CFLAGS = -pg -g -Wall +iperf3_profile_CFLAGS = -pg -g iperf3_profile_LDADD = libiperf.la iperf3_profile_LDFLAGS = -pg -g # Specify the sources and various flags for the test cases t_timer_SOURCES = t_timer.c -t_timer_CFLAGS = -g -Wall +t_timer_CFLAGS = -g t_timer_LDFLAGS = t_timer_LDADD = libiperf.la t_units_SOURCES = t_units.c -t_units_CFLAGS = -g -Wall +t_units_CFLAGS = -g t_units_LDFLAGS = t_units_LDADD = libiperf.la t_uuid_SOURCES = t_uuid.c -t_uuid_CFLAGS = -g -Wall +t_uuid_CFLAGS = -g t_uuid_LDFLAGS = t_uuid_LDADD = libiperf.la dist_man_MANS = iperf3.1 libiperf.3