portableproplib: use __attribute__((unused)) to fix a unused-but-set-variable warning.

This commit is contained in:
Juan RP 2014-05-29 08:32:14 +02:00
parent 9e1132c950
commit 19d36aaf04
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -310,6 +310,6 @@ do { \
/*
* Language features.
*/
#define _PROP_ARG_UNUSED /* delete */
#define _PROP_ARG_UNUSED __attribute__((unused))
#endif /* _PROPLIB_PROP_OBJECT_IMPL_H_ */