Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

[linux-port] Disable unknown pragma warnings - #190

Merged
ehsannas merged 1 commit into
google:linuxfrom
antiagainst:disable-unknown-pragma
May 18, 2018
Merged

ehsannas merged 1 commit into
google:linuxfrom
antiagainst:disable-unknown-pragma

Conversation

@antiagainst

Copy link
Copy Markdown

The source code contains lots of pragmas specific to MSVC, which
causes GCC/Clang to flood the build output channel.

The source code contains lots of pragmas specific to MSVC, which
causes GCC/Clang to flood the build output channel.
@antiagainst antiagainst self-assigned this May 18, 2018
@antiagainst
antiagainst requested a review from ehsannas May 18, 2018 12:15
@pow2clk

pow2clk commented May 18, 2018

Copy link
Copy Markdown

Heh. I just independently implemented this change into #186 for the sake of GCC which is failing in some builds because the log gets too big. I had limited it to GCC but there isn't a good reason to do that I suppose. unknown pragma warnings are rarely very helpful.

@antiagainst

Copy link
Copy Markdown
Author

Oh, sorry, I didn't notice you've newly disabled this in #186.

Yep, we should just disable this for GCC and Clang. I'm also thinking about disabling unused function/variable warnings, but on a second thought, they are still useful. We can prune some truly unused stuff for both platforms, and #ifdef Windows-specific ones.

Right now stdout/stderr is flooded basically with all these verbose messages.

@pow2clk

pow2clk commented May 18, 2018

Copy link
Copy Markdown

I just noticed that you did it in this subdir while I did it globally. Is there a reason not to do it globally? My change isn't in yet. It's failing because of too much spew even with that unknown pragmas suppressed. I might have to actually fix some legit warnings to get it down.

@pow2clk

pow2clk commented May 18, 2018

Copy link
Copy Markdown

Nevermind I get it. This is a better way to do things. I'll move my changes there too.

@antiagainst

Copy link
Copy Markdown
Author

It is enabled if LLVM_ENABLE_WARNINGS and LLVM_COMPILER_IS_GCC_COMPATIBLE. So it should be applied to both GCC and Clang.

I'm thinking that we may want to set LLVM_ENABLE_WARNINGS to OFF to mute warnings totally until we are ready to handle those warnings.

@pow2clk

pow2clk commented May 18, 2018

Copy link
Copy Markdown

Go ahead and submit this if you want. No need to wait for my change just because I pressed the keys first. I'm still dealing with excessive spew and this will only help things. 👍

@AppVeyorBot

Copy link
Copy Markdown

@ehsannas
ehsannas merged commit 6a96594 into google:linux May 18, 2018
@ehsannas
ehsannas deleted the disable-unknown-pragma branch May 18, 2018 13:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants