Re: [[ noreturn ]]

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

 



Hi,

On Thu, May 28, 2015 at 9:46 PM, Hotmail (ArbolOne) <ArbolOne@xxxxxxxxxx> wrote:
> Hi!
> When using this the [[ noreturn ]] attribute like this: - void f [[ noreturn
> ]] (); - I get a warning that reads:
> warning: 'noreturn' function does return
> ( http://www.stroustrup.com/C++11FAQ.html#attributes )
> What can I do to remove this warning?

I suspect that the implicit return at the end of the function triggers
the warning. The example you give shows a function that throws
unconditionally, meaning the function truly doesn't return.

-Andrew

>
> Thanks



-- 
--
Andrew Melo




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux