Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).
Joseph Myers <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 5 Aug 2020, Zack Weinberg wrote: > +1 from me regardless -- we should be phasing out the use of pre-ANSI > constructs in autoconf's generated C snippets, and this is as good a > place to start as any. Note that C2x no longer had old-style function definitions and treats () in a function definition the same as (void) (in a declaration that's not a definition it still gives a non-prototype type). So with -std=c2x or -std=gnu2x, GCC -Wold-style-definition won't warn about (). -- Joseph S. Myers [email protected]