autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and ab


From: Joseph Myers
Subject: Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).
Date: Wed, 5 Aug 2020 17:49:20 +0000
User-agent: Alpine 2.21 (DEB 202 2017-01-01)

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
joseph@codesourcery.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]