glxtest.cpp fails to compile with Solaris Studio

RESOLVED FIXED in mozilla9

Status

()

defect
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

Tracking

unspecified
mozilla9
x86
Solaris
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

"/export/home/ginn/work/mozilla-central/toolkit/xre/glxtest.cpp", line 101: Error: The function "snprintf" must have a prototype.
"/export/home/ginn/work/mozilla-central/toolkit/xre/glxtest.cpp", line 166: Warning (Anachronism): Formal argument 1 of type extern "C" int(*)(_XDisplay*,XErrorEvent*) in call to XSetErrorHandler(extern "C" int(*)(_XDisplay*,XErrorEvent*)) is being passed int(*)(_XDisplay*,XErrorEvent*).
"/export/home/ginn/work/mozilla-central/toolkit/xre/glxtest.cpp", line 200: Error: The function "snprintf" must have a prototype.
"/export/home/ginn/work/mozilla-central/toolkit/xre/glxtest.cpp", line 233: Error: The function "perror" must have a prototype.
"/export/home/ginn/work/mozilla-central/toolkit/xre/glxtest.cpp", line 238: Error: The function "perror" must have a prototype.
4 Error(s) and 1 Warning(s) detected.

<cstdio> in Solaris Studio doesn't have snprintf() and perror().
#include <stdio.h> will fix that.
Posted patch patchSplinter Review
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #548708 - Flags: review?(karlt)
Attachment #548708 - Flags: review?(karlt) → review+
http://hg.mozilla.org/mozilla-central/rev/9e28008d9d1f
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.