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

Bruno Haible <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?110400>

                 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
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

This worked with autoconf 2.69 generated configure files; with autoconf 2.70
generated configure files the configuration aborts like this:


checking how clang -Wextra-semi-stmt reports undeclared, standard C
functions... configure: error: in `/testdir1/build-64':
configure: error: cannot detect from compiler exit status or warnings
See `config.log' for more details


This can be reproduced:
a) on a Unix system, with CC="clang -Wall -Wextra-semi-stmt",
b) on a Windows system, with CC="$HOME/compile clang-cl -Wall".

(Apparently 'clang-cl' enables some more warnings on Windows, than 'clang' on
Unix. Probably for MSVC compatibility.)





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110400>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.