From 2aa844f3f7b310efbb99c397a7b1244afae1b0e7 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sun, 15 Feb 2015 05:47:35 +0100
Subject: [PATCH] lib/Makefile: remove some disabled warnings for
 lib{fetch,portableproplib}.

There's no need to set _GNU_SOURCE and disable those compiler warning flags.
---
 lib/Makefile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/Makefile b/lib/Makefile
index 7731975c..3ef2a237 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -14,17 +14,14 @@ LIBPROP_OBJS += portableproplib/prop_stack.o portableproplib/prop_string.o
 LIBPROP_OBJS += portableproplib/prop_array_util.o portableproplib/prop_number.o
 LIBPROP_OBJS += portableproplib/prop_dictionary_util.o portableproplib/prop_zlib.o
 LIBPROP_OBJS += portableproplib/prop_data.o
-LIBPROP_CPPFLAGS = -D_GNU_SOURCE
-LIBPROP_CFLAGS = -Wno-old-style-definition -Wno-cast-qual -Wno-unused-parameter -Wno-error
-LIBPROP_CFLAGS += -fvisibility=hidden
+LIBPROP_CFLAGS = -Wno-unused-parameter -fvisibility=hidden
 
 # libfetch
 LIBFETCH_OBJS = fetch/common.o fetch/fetch.o fetch/file.o
 LIBFETCH_OBJS += fetch/ftp.o fetch/http.o
 LIBFETCH_CPPFLAGS = -DFTP_COMBINE_CWDS -DINET6 -DWITH_SSL
-LIBFETCH_CFLAGS = -Wno-error -Wno-unused-macros -Wno-conversion
 ifdef HAVE_VISIBILITY
-LIBFETCH_CFLAGS+= -fvisibility=hidden
+LIBFETCH_CFLAGS= -fvisibility=hidden
 endif
 LIBFETCH_INCS = fetch/common.h
 LIBFETCH_GEN = fetch/ftperr.h fetch/httperr.h