Closed Bug 1256028 Opened 8 years ago Closed 8 years ago

xpcom/io/nsLocalFileWin.cpp:1724 [C4477] '_snwprintf' : format string '%s' requires an argument of type 'wchar_t *', but variadic argument 3 has type 'char16ptr_t'

Categories

(Core :: Networking: File, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: gps, Assigned: gps)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-backlog])

Attachments

(1 file)

The warning in the summary is currently being suppressed by Visual Studio 2015. To reproduce it, remove "-Wv:18" from old-configure.in and rebuild.
Whiteboard: [necko-backlog]
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings. So hopefully
this patch never lands because someone insists of fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary.

Review commit: https://reviewboard.mozilla.org/r/39939/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/39939/
Attachment #8730488 - Flags: review?(mcmanus)
Comment on attachment 8730488 [details]
MozReview Request: Bug 1256028 - Disable C4477 to unblock compilation on VS2015; r?mcmanus

https://reviewboard.mozilla.org/r/39939/#review36593
Attachment #8730488 - Flags: review?(mcmanus) → review+
Assignee: nobody → gps
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/cdea1598a698
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Blocks: 1259319
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: