Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

chinmaygarde
Copy link
Member

This should also eliminate the pages and pages of warnings generated when
compiling using Clang on Windows.

This should also eliminate the pages and pages of warnings generated when
compiling using Clang on Windows.
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

I don't think we should make most of these changes.

flutter/flutter#59199 tracks the status, and all but a very small number have fixes in flight.

]
# Warns when a source file doesn't have a newline at end-of-file.
# This is to match Fuchsia, which enables this warning.
"-Wnewline-eof",
Copy link
Contributor

Choose a reason for hiding this comment

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

I have a fix for this landed in ANGLE, I just need to find time to update the licenses to roll it (flutter/engine#19105)

if (!is_win) {
cflags = [
# Warns when a const char[] is converted to bool.
"-Wstring-conversion",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually hit this on Windows?

@@ -78,6 +78,8 @@ config("compiler") {
"/GS", # Enable buffer security checking.
"/FS", # Preserve previous PDB behavior.
]

ldflags += [ "/ignore:4217" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs a comment; I'm not sure what it is, or why we need to suppress it instead of fix it.

@@ -535,6 +538,8 @@ config("runtime_library") {
"_CRT_SECURE_NO_DEPRECATE",
"_HAS_EXCEPTIONS=0",
"_SCL_SECURE_NO_DEPRECATE",
"_CRT_NONSTDC_NO_WARNINGS",
"_CRT_NONSTDC_NO_DEPRECATE",
Copy link
Contributor

Choose a reason for hiding this comment

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

We should't blank-suppress these. They are almost all from Dart, and they have an in-progress PR to fix them.

# Some third party dependencies like ICU add flags that are not supported
# by clang-cl yet.
"-Wno-unknown-argument",

"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you turning these on more often? The are working around a goma bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

I ran into these on my non-corp workstation without goma setup.

@chinmaygarde
Copy link
Member Author

Great. I didn't realize you were already working on it. It was quite painful working on Windows with all the warnings so added -Werror and suppressed anything else. The more deliberate approach looks better. I'll revisit Windows once the cross-referenced issue is addressed. Thanks.

@chinmaygarde chinmaygarde deleted the win_no_warnings branch July 1, 2020 23:36
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.

2 participants