c: port YY_ATTRIBUTE_UNUSED to Sun C 5.12
commit83c9051a64e70b07904a0f6abe7988f75e59884e
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Oct 2019 18:28:38 +0000 (17 11:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Oct 2019 18:51:20 +0000 (17 11:51 -0700)
treef1e940f1104fbf71e7e9a79675dea16ec00b3fb2
parent7a557ee7fe7d18400a161c696a8ad32d374caf5e
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.
data/skeletons/c.m4
tests/headers.at