Closed
Bug 832280
Opened 10 years ago
Closed 10 years ago
Disable MSVC warning C4482: nonstandard extension used: enum 'xyz' used in qualified name
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla21
People
(Reporter: filidautore, Assigned: filidautore)
Details
Attachments
(1 file, 1 obsolete file)
2.20 KB,
patch
|
filidautore
:
review+
|
Details | Diff | Splinter Review |
It becomes a standard since C++11, and MSVC11 removed the warning. (See bug 755031 comment 23 and 24)
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #703869 -
Flags: review?(ted)
Updated•10 years ago
|
Assignee: nobody → filidautore
Comment 2•10 years ago
|
||
Comment on attachment 703869 [details] [diff] [review] Disable globally MSVC warning C4482 Review of attachment 703869 [details] [diff] [review]: ----------------------------------------------------------------- ::: configure.in @@ +2201,5 @@ > # MSVC warning C4345 warns of newly conformant behavior as of VS2003. > # MSVC warning C4351 warns of newly conformant behavior as of VS2005. > + # MSVC warning C4482 warns when an enum value is refered specifing the > + # name of the enum itself. It becomes a standard since C++11, and MSVC11 > + # removed the warning. Can you reword this slightly, perhaps "This behavior is allowed in C++11, and the warning has been removed in VS2012."
Attachment #703869 -
Flags: review?(ted) → review+
Comment 3•10 years ago
|
||
If you can upload a patch with that minor rewording, you can add the "checkin-needed" keyword to this bug and we'll get it landed. Thanks for the patch!
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 4•10 years ago
|
||
Updated the comment in the patch as suggested.
Attachment #703869 -
Attachment is obsolete: true
Attachment #703890 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #3) Thanks to you for fast review :)
Comment 6•10 years ago
|
||
Thanks for proofing my poor English :) https://hg.mozilla.org/integration/mozilla-inbound/rev/8472e5898021
Flags: in-testsuite-
Keywords: checkin-needed
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8472e5898021
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 8•10 years ago
|
||
Doing this still causes build errors for people, no?
Comment 9•10 years ago
|
||
What build errors?
Comment 10•10 years ago
|
||
jgriffin had a build issue because of a gfxImageFormat:: prefix on mac on Jan 8, but the pastebin is dead already.
Comment 11•10 years ago
|
||
Obviously this patch will affect only MSVC. A better fix would be making gfxImageFormat an enum class as dholbert said.
Updated•5 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•