Re: [PATCH] handle attribute format on functions without prototype (PR 93812)

2020-02-28 Thread Jeff Law
On Wed, 2020-02-26 at 15:51 -0700, Martin Sebor wrote: > GCC accepts attribute format even on functions without a prototype. > However, when such a function is subsequently redeclared with > a prototype the attribute validation runs into trouble. To avoid > the ICE I considered a) dropping the att

[PATCH] handle attribute format on functions without prototype (PR 93812)

2020-02-26 Thread Martin Sebor
GCC accepts attribute format even on functions without a prototype. However, when such a function is subsequently redeclared with a prototype the attribute validation runs into trouble. To avoid the ICE I considered a) dropping the attribute on functions declared without a prototype (like Clang d