Closed Bug 1108932 Opened 10 years ago Closed 10 years ago

dom/security/nsCSPParser.cpp: error: unused variable 'COMMA' [-Werror,-Wunused-const-variable]

Categories

(Core :: DOM: Security, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

1. Remove unused COMMA constant to fix -Wunused-const-variable warning-as-error in non-unified build on OS X.
2. Add some more const attributes.
3. Mark some local functions as static.
4. Remove some extra whitespace.
Attachment #8533528 - Flags: review?(mozilla)
Comment on attachment 8533528 [details] [diff] [review]
CSPParser_Wunused-const-variable.patch

Review of attachment 8533528 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks Chris! COMMA is part of the RFC production of paths but can only appear pct-encoded. Should have removed it from the list. Thanks again for cleaning that up.
Attachment #8533528 - Flags: review?(mozilla) → review+
No longer depends on: FAIL_ON_WARNINGS
https://hg.mozilla.org/mozilla-central/rev/927963e7b037
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: