diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 10 | ||||
-rw-r--r-- | lib/unistring/cdefs.in.h (renamed from lib/unistring/cdefs.h) | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index f9efa8f..5d58942 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -157,6 +157,16 @@ nobase_nodist_include_HEADERS += unistring/version.h # unistring/cdefs.h is not public, but is included by other header files. nobase_nodist_include_HEADERS += unistring/cdefs.h +unistring/cdefs.h : unistring/cdefs.in.h + @MKDIR_P@ unistring + rm -f $@-t $@ + sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \ + < $(srcdir)/unistring/cdefs.in.h \ + > $@-t + mv $@-t $@ +BUILT_SOURCES += unistring/cdefs.h +MOSTLYCLEANFILES += unistring/cdefs.h-t +CLEANFILES += unistring/cdefs.h # unistring/woe32dll.h is not public, but is included by other header files. nobase_nodist_include_HEADERS += unistring/woe32dll.h diff --git a/lib/unistring/cdefs.h b/lib/unistring/cdefs.in.h index 23c339c..2be62c2 100644 --- a/lib/unistring/cdefs.h +++ b/lib/unistring/cdefs.in.h @@ -17,15 +17,6 @@ #ifndef _UNISTRING_CDEFS_H #define _UNISTRING_CDEFS_H -/* Define as a marker that can be attached to function parameter declarations - for parameters that are not used. This helps to reduce warnings, such as - from GCC -Wunused-parameter. */ -#ifndef _UNUSED_PARAMETER_ -# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) -# define _UNUSED_PARAMETER_ __attribute__ ((__unused__)) -# else -# define _UNUSED_PARAMETER_ -# endif -#endif +/* The definition of _GL_UNUSED_PARAMETER is copied here. */ #endif /* _UNISTRING_CDEFS_H */ |