This is an automated email from Gerrit. Antonio Borneo ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6009
-- gerrit commit 74fa510c7323baa32300a2ed08b3407117d23985 Author: Antonio Borneo <[email protected]> Date: Fri Jan 8 15:11:49 2021 +0100 configure.ac: drop macro 'AC_PROG_CC_C99' The macro AC_PROG_CC_C99 has been obsoleted by autoconf 2.70 and its test is now included in the macro AC_PROG_CC. The latter macro is already present in configure.ac. For autoconf 2.69 and earlier, the macro has to be specified if needed. The macro AC_PROG_CC_C99 checks if the C compiler is not in C99 mode by default, then searches for a command line flag able to put the compiler in C99 mode. The flags tested are: '-std=gnu99', '-std=c99', '-c99', '-AC99', '-D_STDC_C99=' and '-qlanglvl=extc99'. From gcc 5.1.0 (2015-04-22) the default when no command line flag is given is to use C11. Later versions of gcc use C99 as default. As old as gcc 5.1.0, also clang 3.6.0 (2015-02-27) uses C11 as default. Later versions of clang use C17 as default. So, starting from gcc 5.1.0 and clang at least 3.6.0, the macro AC_PROG_CC_C99 is not required anymore. For users on compilers other than gcc, the autoconf macro could still be useful, but today gcc and clang are the two major compilers used for OpenOCD on all platforms. The risk to break the build removing the macro is really low. Remove the macro AC_PROG_CC_C99 to avoid the autoconf warning for obsoleted macro. Change-Id: I5e8437f5a826fb63be6d07bcb5bb824f94683020 Signed-off-by: Antonio Borneo <[email protected]> diff --git a/configure.ac b/configure.ac index 71b2381..8180074 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,6 @@ AH_BOTTOM([ AC_LANG([C]) AC_PROG_CC -AC_PROG_CC_C99 AM_PROG_CC_C_O AC_PROG_RANLIB PKG_PROG_PKG_CONFIG([0.23]) -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
