[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-11 Thread Bruno Haible
URL: Summary: autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled Project: Autoconf Submitted by: haible Submitted on: Sat 12 Dec 2020 02:58:29 AM CET Ca

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-11 Thread Bruno Haible
Follow-up Comment #1, sr #110400 (project autoconf): The error happens in the expansion of the macro _AC_UNDECLARED_WARNING: # For AC_CHECK_DECL to react to warnings, the compiler must be silent on # valid AC_CHECK_DECL input. No library function is consistently available # on fre

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-11 Thread Bruno Haible
Follow-up Comment #2, sr #110400 (project autoconf): The workaround is to add option -Wno-extra-semi-stmt after the -Wall option, e.g. on Windows systems: CC="$HOME/compile clang-cl -Wall -Wno-extra-semi-stmt". ___ Reply to this item at:

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-11 Thread Zack Weinberg
Follow-up Comment #3, sr #110400 (project autoconf): AC_LANG_PROGRAM(C) generates the same empty statement in 2.69. However, the "checking how $CC reports undeclared, standard C functions" test is new in 2.70. It seems to have been added specifically for Clang's sake, in commit 82ef7805faffa151e

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-11 Thread Zack Weinberg
Follow-up Comment #4, sr #110400 (project autoconf): Oh, forgot to mention, I don't think we can remove that extra semicolon from AC_LANG_PROGRAM. I expect there are zillions of custom tests out there that do things like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[return 1 == 2]]), [...], [..

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-12 Thread Paul Eggert
Follow-up Comment #5, sr #110400 (project autoconf): > I'm not all that familiar with clang. Does anyone have a better idea for how to handle this quirk it has? Commit 82ef7805faffa151e724aa76c245ec590d174580

[sr #110400] autoconf 2.70 no longer supports clang with -Wextra-semi-stmt warning enabled

2020-12-23 Thread Zack Weinberg
Update of sr #110400 (project autoconf): Status:None => Done Open/Closed:Open => Closed ___ Follow-up Comment #6: Fixed in ec90049df