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