Closed
Bug 1238635
Opened 9 years ago
Closed 8 years ago
don't warn on self-assignment for android support code
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mshal
:
review+
|
Details | Diff | Splinter Review |
clang turns this warning on by default, which interferes with using
clang on Android. Just disable the warning to avoid cluttering up the
logs.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8706619 -
Flags: review?(mshal)
Comment 2•9 years ago
|
||
Comment on attachment 8706619 [details] [diff] [review]
don't warn on self-assignment for android support code
> # We allow warnings for third-party code that can be updated from upstream.
> ALLOW_COMPILER_WARNINGS = True
It might be helpful to move the new flags here, after the ALLOW_COMPILER_WARNINGS line, along with a comment explaining why we need to turn it off.
Though from https://bugzilla.mozilla.org/show_bug.cgi?id=1215903#c1 it sounds like the intention is to keep all the warnings and fix them upstream for cases like this. :njn, your thoughts?
>+
>+if CONFIG['CLANG_CXX']:
>+ CFLAGS += [
>+ '-Wno-self-assign',
>+ ]
>
Flags: needinfo?(n.nethercote)
Attachment #8706619 -
Flags: review?(mshal) → feedback+
Comment 3•9 years ago
|
||
> Though from https://bugzilla.mozilla.org/show_bug.cgi?id=1215903#c1 it
> sounds like the intention is to keep all the warnings and fix them upstream
> for cases like this. :njn, your thoughts?
In the past there have been cases (like that bug) where we enabled fatal warnings for third-party code directories and then dealt with bustage by turning off individual warnings, which is a losing strategy -- any time you update the third-party code you're at risk of causing build bustage. So the intention is that ALLOW_COMPILER_WARNINGS be used for third-party code to make warnings non-fatal and thus avoid this problem.
Having said that, if one particular kind of warning is frequent in third-party code I think it's fine to specifically disable it to avoid lots of output. (I did this myself with -Wunused in some third-party directories recently.) And if warnings get fixed upstream, that's a bonus, but we certainly shouldn't rely on that.
Flags: needinfo?(n.nethercote)
Comment 4•9 years ago
|
||
Ahh, makes sense. Thanks!
Updated•9 years ago
|
Attachment #8706619 -
Flags: feedback+ → review+
Assignee | ||
Comment 5•8 years ago
|
||
other-licenses/android/ was removed when we dropped support for older android versions.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•