diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-25 02:50:56 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-25 02:50:56 +0100 |
commit | 43e5d6dc390ec27ed97002f9eb33aa5903b73c81 (patch) | |
tree | 13c5a11bbe2a74f501fe0729744204f531756361 /lib | |
parent | 4b8650c5e098e010b1468430e5e9cf4f5b71ba76 (diff) | |
download | libunistring-43e5d6dc390ec27ed97002f9eb33aa5903b73c81.tar.gz |
Update after gnulib added module 'unused-parameter'.
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 */ |