stdnoreturn: port to newer GCCs
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Aug 2012 23:40:05 +0000 (16:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Aug 2012 23:42:35 +0000 (16:42 -0700)
commit8f25604017b00aec5a7b2a37fc96a55f2c948ec9
treed19611ff55d1b0836ffe2981e2525640407e8a10
parentf1394395d0fb27521f7b1610aca2b01a7ee64825
stdnoreturn: port to newer GCCs

* m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
Problem reported by Jim Meyering in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
Also, rename the 'test' function to a void a clash with the
already-supplied 'main' function; this fixes a bug that incorrectly
rejected GCC 4.7.1's <stdnoreturn.h>.
* doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
Document GCC problem.
ChangeLog
doc/posix-headers/stdnoreturn.texi
m4/stdnoreturn.m4