From 19d36aaf04350d5cd548d3a24d9660c17184a7ed Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 29 May 2014 08:32:14 +0200 Subject: [PATCH] portableproplib: use __attribute__((unused)) to fix a unused-but-set-variable warning. --- lib/Makefile | 2 +- lib/portableproplib/prop_object_impl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 5d5874c5..c7a91d8a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -15,7 +15,7 @@ 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-unused-but-set-variable +LIBPROP_CFLAGS = -Wno-old-style-definition -Wno-cast-qual -Wno-unused-parameter -Wno-error LIBPROP_CFLAGS += -fvisibility=hidden # libfetch diff --git a/lib/portableproplib/prop_object_impl.h b/lib/portableproplib/prop_object_impl.h index 47dcf81b..25c630be 100644 --- a/lib/portableproplib/prop_object_impl.h +++ b/lib/portableproplib/prop_object_impl.h @@ -310,6 +310,6 @@ do { \ /* * Language features. */ -#define _PROP_ARG_UNUSED /* delete */ +#define _PROP_ARG_UNUSED __attribute__((unused)) #endif /* _PROPLIB_PROP_OBJECT_IMPL_H_ */