portableproplib: use __attribute__((unused)) to fix a unused-but-set-variable warning.
This commit is contained in:
parent
9e1132c950
commit
19d36aaf04
@ -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_dictionary_util.o portableproplib/prop_zlib.o
|
||||||
LIBPROP_OBJS += portableproplib/prop_data.o
|
LIBPROP_OBJS += portableproplib/prop_data.o
|
||||||
LIBPROP_CPPFLAGS = -D_GNU_SOURCE
|
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
|
LIBPROP_CFLAGS += -fvisibility=hidden
|
||||||
|
|
||||||
# libfetch
|
# libfetch
|
||||||
|
@ -310,6 +310,6 @@ do { \
|
|||||||
/*
|
/*
|
||||||
* Language features.
|
* Language features.
|
||||||
*/
|
*/
|
||||||
#define _PROP_ARG_UNUSED /* delete */
|
#define _PROP_ARG_UNUSED __attribute__((unused))
|
||||||
|
|
||||||
#endif /* _PROPLIB_PROP_OBJECT_IMPL_H_ */
|
#endif /* _PROPLIB_PROP_OBJECT_IMPL_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user