[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
- [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Eric Blake, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/07
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/07
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/07