Skip to content

Ignore new clang -Wint-in-bool-context warning, which affects musl, compiler-rt, etc.#9483

Merged
kripken merged 8 commits into
incomingfrom
fix4
Sep 23, 2019
Merged

Ignore new clang -Wint-in-bool-context warning, which affects musl, compiler-rt, etc.#9483
kripken merged 8 commits into
incomingfrom
fix4

Conversation

@kripken

@kripken kripken commented Sep 23, 2019

Copy link
Copy Markdown
Member

Clang added a new warning, -Wint-in-bool-context, which warns on common stuff in musl, compiler-rt, etc., like (x >> 1) ? y : z. Instead of modifying a bunch of places in those projects, it seems best to ignore the warning in system libs for now, and eventually when we upgrade them they'll be fixed.

The new clang hasn't rolled, so CI here doesn't have a clang build that recognizes that, so temporarily pass -Wno-unknown-warning-option so we can pass here. That way we can keep all CI green while getting the LLVM roll in.

@kripken kripken requested a review from sbc100 September 23, 2019 20:16
@kripken kripken changed the title Fix4 Ignore new clang -Wint-in-bool-context warning, which affects musl, compiler-rt, etc. Sep 23, 2019
@kripken kripken merged commit 6ba9fbb into incoming Sep 23, 2019
@kripken kripken deleted the fix4 branch September 23, 2019 21:00
@davidbolvansky

Copy link
Copy Markdown

Can you try after https://reviews.llvm.org/rL372708?

@kripken

kripken commented Sep 25, 2019

Copy link
Copy Markdown
Member Author

Thanks @davidbolvansky, I subscribed to that review and I'll try after it lands.

@davidbolvansky

Copy link
Copy Markdown

It landed

@kripken

kripken commented Sep 25, 2019

Copy link
Copy Markdown
Member Author

Oh thanks, I don't read much LLVM reviews and I missed the landed part there. Yes, looks like we don't need the workaround anymore, I opened #9508

@davidbolvansky

Copy link
Copy Markdown

Thanks :)

kripken added a commit that referenced this pull request Sep 26, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
…ompiler-rt, etc. (emscripten-core#9483)

Clang added a new warning, -Wint-in-bool-context, which warns on common stuff in musl, compiler-rt, etc., like (x >> 1) ? y : z. Instead of modifying a bunch of places in those projects, it seems best to ignore the warning in system libs for now, and eventually when we upgrade them they'll be fixed.

The new clang hasn't rolled, so CI here doesn't have a clang build that recognizes that, so temporarily pass -Wno-unknown-warning-option so we can pass here. That way we can keep all CI green while getting the LLVM roll in.
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants