Re: __attribute__ error ("message")

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

 



On Fri, 2023-03-31 at 22:54 +0100, Jonny Grant wrote:
> If the error or warning attribute is used on a function declaration
> and a call to such a function is not eliminated through dead code
> elimination or other optimizations, an error or warning (respectively)
> that includes message is diagnosed. 

In this example the "call to such a function" is clearly "eliminated
through" inlining (one of "other optimizations").

> https://godbolt.org/z/n849GPTjj

-- 
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[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