Fix -Wdeprecated-writable-strings warnings by const-correcting typelib/xpt code

RESOLVED FIXED in Firefox 32

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: cpeterson, Assigned: cpeterson)

Tracking

(Blocks 1 bug, {regression})

unspecified
mozilla32
x86
macOS
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox31 unaffected, firefox32 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

5 years ago
These clang warnings are a regression from bug 1005321's conversion of xpt from C to C++, where static strings are const data:

xpcom/typelib/xpt/tests/PrimitiveTest.cpp:29:25 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/PrimitiveTest.cpp:37:47 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:73:51 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:74:51 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:84:7 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:84:20 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:89:51 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
xpcom/typelib/xpt/tests/SimpleTypeLib.cpp:96:51 [-Wdeprecated-writable-strings] conversion from string literal to 'char *' is deprecated
Attachment #8418561 - Flags: review?(bobbyholley)
Attachment #8418561 - Flags: review?(bobbyholley) → review+
Assignee

Updated

5 years ago
Blocks: 1007525
https://hg.mozilla.org/mozilla-central/rev/d1934e246ff4
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32

Comment 3

5 years ago
Thanks so much for picking up after me.  :-)
You need to log in before you can comment on or make changes to this bug.