Closed
Bug 402395
Opened 17 years ago
Closed 17 years ago
Dangling semi-colon caused when "ac_add_options --disable-logging" throws warning in VS2005
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: masmullin, Assigned: masayuki)
References
Details
Attachments
(2 files, 2 obsolete files)
1.39 KB,
patch
|
benjamin
:
superreview-
|
Details | Diff | Splinter Review |
1.47 KB,
patch
|
dwitte
:
review+
benjamin
:
superreview+
beltzner
:
approvalM9+
|
Details | Diff | Splinter Review |
Trunk build on windows vs2005 breaks when "ac_add_options --disable-logging" is used in a mozconfig When PR_LOGGING is not defined, the COOKIE_LOGSTRING macro is mapped to nothing (line 328); thus line 437 has a dangling semi-colon when PR_LOGGING is not defined. VS2005 throws a warning for dangling semi-colons, and the build treats warnings as errors.
Reporter | ||
Comment 1•17 years ago
|
||
Attachment #287276 -
Attachment is obsolete: true
Reporter | ||
Comment 2•17 years ago
|
||
Attachment #287277 -
Attachment is obsolete: true
Comment 3•17 years ago
|
||
Comment on attachment 287281 [details] [diff] [review] Real patch (previous one had bug) This patch fixes a problem similar to the one fixed in bug 260209. The patch in that bug used the "do{}while(0)" trick, whereas this patch uses a simpler trick.
Attachment #287281 -
Flags: superreview?(benjamin)
Attachment #287281 -
Flags: review?(dougt)
Updated•17 years ago
|
Assignee: nobody → masmullin
Component: Build Config → Networking: Cookies
Product: Firefox → Core
QA Contact: build.config → networking.cookies
Updated•17 years ago
|
OS: Windows XP → All
Hardware: PC → All
Assignee | ||
Comment 5•17 years ago
|
||
Why don't you use PR_BEGIN_MACRO and PR_END_MACRO like my patch in bug 402506?
Assignee | ||
Comment 6•17 years ago
|
||
proposal patch, using PR_BEGIN_MACRO and PR_END_MACRO.
Attachment #287377 -
Flags: superreview?(benjamin)
Attachment #287377 -
Flags: review?(dougt)
Assignee | ||
Updated•17 years ago
|
Reporter | ||
Comment 7•17 years ago
|
||
I think that "0;" is about as simple as you can get to solve this problem, and I tried to be simple. However, it seems like the "PR_BEGIN_MACRO /* nothing */ PR_END_MACRO" is the norm to solve this problem in the moz-code.
Comment 8•17 years ago
|
||
(In reply to comment #5) > Why don't you use PR_BEGIN_MACRO and PR_END_MACRO like my patch in bug 402506? Why is that better than using 0? Using 0 seems simpler.
Assignee | ||
Comment 9•17 years ago
|
||
PR_BEGIN_MACRO/PR_END_MACRO hack is already used, so, it is safety on all our supporting platforms. If "0;" is better, we should use it on other similar points.
Comment 10•17 years ago
|
||
Comment on attachment 287281 [details] [diff] [review] Real patch (previous one had bug) The other one is better
Attachment #287281 -
Flags: superreview?(benjamin)
Attachment #287281 -
Flags: superreview-
Attachment #287281 -
Flags: review?(dougt)
Comment 11•17 years ago
|
||
bsmedberg recommends that we don't block beta on this, moving TM out to "undefined", I'll let the component owner make the final blocking call. (blocking? w/TM=M9 is asking for beta-blocking status)
Target Milestone: mozilla1.9 M9 → ---
Updated•17 years ago
|
Attachment #287377 -
Flags: superreview?(benjamin)
Attachment #287377 -
Flags: superreview+
Attachment #287377 -
Flags: review?(dwitte)
Attachment #287377 -
Flags: review?(dougt)
Updated•17 years ago
|
Attachment #287377 -
Flags: review?(dwitte) → review+
Comment 12•17 years ago
|
||
Comment on attachment 287377 [details] [diff] [review] proposal patch a=beltzner for M9
Attachment #287377 -
Flags: approvalM9+
Updated•17 years ago
|
Assignee: masmullin → masayuki
Comment 13•17 years ago
|
||
checked in for M9. thanks for the patches!
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: blocking1.9?
Updated•17 years ago
|
Target Milestone: --- → mozilla1.9 M9
You need to log in
before you can comment on or make changes to this bug.
Description
•