[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: '_Noreturn' not at beginning of declaration

From: Paul Eggert
Subject: Re: '_Noreturn' not at beginning of declaration
Date: Thu, 23 Aug 2012 14:44:39 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 08/23/2012 01:10 PM, Jim Meyering wrote:
> -void _Noreturn xstrtol_fatal (enum strtol_error,
> +_Noreturn void xstrtol_fatal (enum strtol_error,

I worry that this may break on older GCCs that
don't let you put attributes at the start of a declaration.
_Noreturn expands to __attribute__ ((__noreturn__)) on pre-C11 GCC
compilers.  Is there some easy way that you can fire up older versions
of GCC and see whether there's any version where this works:

void __attribute__ ((__noreturn__)) openat_save_fail (int);                     

but this does not?

__attribute__ ((__noreturn__)) void openat_save_fail (int);                     

reply via email to

[Prev in Thread] Current Thread [Next in Thread]