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

[linux-port] Fix spirv test warnings - #233

Merged
ehsannas merged 1 commit into
google:linuxfrom
pow2clk:pow2clk-warntest
May 30, 2018
Merged

ehsannas merged 1 commit into
google:linuxfrom
pow2clk:pow2clk-warntest

Conversation

@pow2clk

@pow2clk pow2clk commented May 30, 2018

Copy link
Copy Markdown

clang-spirv-tests uses a lot of external projects that keep
themselves clean with different standards of warnings flags.
This alters the appropriate cmake files to disable flags that
the DXC build enables.
Fixes 72 gcc and 166 clang warnings.

Additionally catch some sign mismatch comparisons in tests
built as part of clang-spirv-tests.
Fixes 2 gcc and 2 clang warnings, but one of them has multiple sources
So it's kind of a lot more.

Contributes to #206

@AppVeyorBot

Copy link
Copy Markdown

Comment thread external/CMakeLists.txt Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

IMHO we should use -w to suppress all warnings. Selectively disabling them is not quite future proof.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That was my initial thought, but since they'd been selectively removed before, I thought I'd be conservative. If we have no intention of fixing warnings in these external projects, then I agree, it makes sense to just dismiss them all.

clang-spirv-tests uses a lot of external projects that keep
themselves clean with different standards of warnings flags.
This alters the appropriate cmake files to disable flags that
the DXC build enables.
Fixes 72 gcc and 166 clang warnings.

Additionally catch some sign mismatch comparisons in tests
built as part of clang-spirv-tests.
Fixes 2 gcc and 2 clang warnings, but one of them has multiple sources
So it's kind of a lot more.

Contributes to google#206
@pow2clk
pow2clk force-pushed the pow2clk-warntest branch from 26c5e11 to 2eedb15 Compare May 30, 2018 12:19
@AppVeyorBot

Copy link
Copy Markdown

@ehsannas ehsannas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@ehsannas
ehsannas merged commit 5deae5e into google:linux May 30, 2018
@pow2clk
pow2clk deleted the pow2clk-warntest branch June 6, 2018 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants