From 53726a558de47d598f159fbd8862a293b92846ed Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 24 May 2005 21:00:54 +0000 Subject: merge from gcc --- include/ansidecl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ansidecl.h') diff --git a/include/ansidecl.h b/include/ansidecl.h index 02bb41240..380e7b351 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -258,11 +258,11 @@ So instead we use the macro below and test it against specific values. */ /* Attributes on labels were valid as of gcc 2.93. */ #ifndef ATTRIBUTE_UNUSED_LABEL -# if (GCC_VERSION >= 2093) +# if (!defined (__cplusplus) && GCC_VERSION >= 2093) # define ATTRIBUTE_UNUSED_LABEL ATTRIBUTE_UNUSED # else # define ATTRIBUTE_UNUSED_LABEL -# endif /* GNUC >= 2.93 */ +# endif /* !__cplusplus && GNUC >= 2.93 */ #endif /* ATTRIBUTE_UNUSED_LABEL */ #ifndef ATTRIBUTE_UNUSED -- cgit v1.2.3