Skip to content

curl-compilers.m4: disable warning spam with Cygwin's clang - #1665

Closed
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:cygwin_clang_warnings
Closed

curl-compilers.m4: disable warning spam with Cygwin's clang#1665
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:cygwin_clang_warnings

Conversation

@MarcelRaad

Copy link
Copy Markdown
Member

When building with Cygwin or MinGW, libtool uses a wrapper executable
instead of a wrapper script [1], which is written in C and throws
missing-variable-declarations warnings. Don't enable these warnings on
Cygwin and MinGW in order to avoid warnings for every executable built,
which spams the test suite output when using Cygwin's clang.

[1] https://www.gnu.org/software/libtool/manual/html_node/Wrapper-executables.html

When building with Cygwin or MinGW, libtool uses a wrapper executable
instead of a wrapper script [1], which is written in C and throws
missing-variable-declarations warnings. Don't enable these warnings on
Cygwin and MinGW in order to avoid warnings for every executable built,
which spams the test suite output when using Cygwin's clang.

[1] https://www.gnu.org/software/libtool/manual/html_node/Wrapper-executables.html
@mention-bot

Copy link
Copy Markdown

@MarcelRaad, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yangtse, @bagder and @dfandrich to be potential reviewers.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 75.957% when pulling 7f20be9 on MarcelRaad:cygwin_clang_warnings into a548183 on curl:master.

Comment thread m4/curl-compilers.m4
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
case $host_os in
cygwin* | mingw*)
dnl libtool wrapper executable throws these warnings

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine except I suggest be more specific about what "these warnings" for posterity, for example
dnl skip missing-variable-declarations warnings for cygwin
dnl and mingw because libtool causes them

@MarcelRaad
MarcelRaad deleted the cygwin_clang_warnings branch July 10, 2017 08:19
@MarcelRaad

Copy link
Copy Markdown
Member Author

Thanks!

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants