Closed Bug 1073828 Opened 11 years ago Closed 11 years ago

RestyleLogging.h usage of __LINE__ requires nested macros

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: dbaron, Assigned: heycam)

References

Details

Attachments

(1 file)

I see: 0:08.62 Warning: -Wshadow in /home/dbaron/builds/ssd/mozilla-central/obj/firefox-debugopt/dist/include/mozilla/RestyleLogging.h: shadowed declaration is here 0:08.62 ../../dist/include/mozilla/RestyleLogging.h:37:24: warning: shadowed declaration is here [-Wshadow] 0:08.62 AutoRestore<int32_t> ar_depth_##__LINE__(LoggingDepth()); This points out that the usage of __LINE__ in RestyleLogging.h isn't as intended; nested macros are needed.
Summary: LOG_RESTYLE_INDENT usage of __LINE__ isn't as intended → RestyleLogging.h usage of __LINE__ requires nested macros
Attached patch patchSplinter Review
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8496501 - Flags: review?(dbaron)
Attachment #8496501 - Flags: review?(dbaron) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: