Closed Bug 674468 Opened 9 years ago Closed 9 years ago

glxtest.cpp fails to compile with Solaris Studio

Categories

(Core :: Graphics, defect)

x86
Solaris
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

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

Details

Attachments

(1 file)

"/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.
Attached 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: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.