summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-10-17 11:28:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-10-17 11:51:20 -0700
commit83c9051a64e70b07904a0f6abe7988f75e59884e (patch)
treef1e940f1104fbf71e7e9a79675dea16ec00b3fb2 /tests
parent7a557ee7fe7d18400a161c696a8ad32d374caf5e (diff)
downloadbison-83c9051a64e70b07904a0f6abe7988f75e59884e.tar.gz
c: port YY_ATTRIBUTE_UNUSED to Sun C 5.12
Sun C 5.12 defines __SUNPRO_C to 0x5120 but diagnoses ‘__attribute__ ((__unused__))’. Change the ifdefs to use the same method as Gnulib in this area. * data/skeletons/c.m4 (YY_ATTRIBUTE): Remove, since not all attributes were added in the same compiler version. (YY_ATTRIBUTE_PURE, YY_ATTRIBUTE_UNUSED): Use specific GCC version for each attribute. Pay no attention to __SUNPRO_C. * tests/headers.at (Several parsers): Tighten tests accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/headers.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/headers.at b/tests/headers.at
index d1e75bf8..390dfa4c 100644
--- a/tests/headers.at
+++ b/tests/headers.at
@@ -321,7 +321,7 @@ AT_PERL_CHECK([[-n -0777 -e '
|YYChar
|YYPUSH_MORE(?:_DEFINED)?
|YYUSE
- |YY_ATTRIBUTE(?:_PURE|_UNUSED)?
+ |YY_ATTRIBUTE(?:_PURE|_UNUSED)
|YY_CONSTEXPR
|YY_COPY
|YY_CPLUSPLUS