Compiling coreutils.git on cygwin with gcc 4.8.3, I got:
lib/openat-die.c:34:1: error: function might be candidate for attribute 'noreturn' [-Werror=suggest-attribute=noreturn]
openat_save_fail (int errnum)
^
* modules/openat-die (Depends-on): Add snippet/_Noreturn.
* lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
_Noreturn.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2014-07-31 Eric Blake <eblake@redhat.com>
+
+ openat-die: use _Noreturn markup
+ * modules/openat-die (Depends-on): Add snippet/_Noreturn.
+ * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
+ _Noreturn.
+
2014-07-30 Eric Blake <eblake@redhat.com>
test-open: port to cygwin, which lacks Fortify
#include "gettext.h"
#define _(msgid) gettext (msgid)
-void
+_Noreturn void
openat_save_fail (int errnum)
{
#ifndef GNULIB_LIBPOSIX
during an openat emulation. The caller must ensure that fd 2 is
not a just-opened fd, even when openat_safer is not in use. */
-void
+_Noreturn void
openat_restore_fail (int errnum)
{
#ifndef GNULIB_LIBPOSIX
error
exitfail
gettext-h
+snippet/_Noreturn
configure.ac: