Closed
Bug 953246
Opened 11 years ago
Closed 11 years ago
gdk-screenshot.cpp:80:32: error: ‘nullptr’ was not declared in this scope
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: mcsmurf, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
984 bytes,
patch
|
mcsmurf
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Linux SeaMonkey build with gcc 4.5 fails with this error:
../../../../../mozilla/testing/tools/screenshot/gdk-screenshot.cpp: In function ‘int main(int, char**)’:
../../../../../mozilla/testing/tools/screenshot/gdk-screenshot.cpp:80:32: error: ‘nullptr’ was not declared in this scope
../../../../../mozilla/testing/tools/screenshot/gdk-screenshot.cpp:130:27: error: ‘nullptr’ was not declared in this scope
Fallout from Bug 784739
Reporter | ||
Comment 1•11 years ago
|
||
Now, are mozilla-specific includes ok in this file? As gdk-screenshot.cpp looks to me like it should compile with system includes only. I wanted to insert "#include "mozilla/NullPtr.h"" in that file.
Reporter | ||
Comment 2•11 years ago
|
||
In this specific case I think it's ok to revert to NULL. I'm mostly doing this because this file looks like it might be useful for other projects, too (note this file does not use the normal MPL license). Other projects might not want to use any Mozilla-specific headers. So I think in this case using NULL instead of nullptr/including our version of nullptr.h is ok.
Reporter | ||
Comment 3•11 years ago
|
||
Though " #if (MOZ_WIDGET_GTK == 2)" is certainly Mozilla-specific... I'll let you decide what solution to use :)
Comment 4•11 years ago
|
||
(In reply to Frank Wein [:mcsmurf] from comment #3)
> Though " #if (MOZ_WIDGET_GTK == 2)" is certainly Mozilla-specific... I'll
> let you decide what solution to use :)
Compare: https://hg.mozilla.org/mozilla-central/rev/8a723f12da34
Flags: needinfo?(bugzilla)
Reporter | ||
Comment 5•11 years ago
|
||
Yes, that's the other solution that's possible.
Flags: needinfo?(bugzilla)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8351553 [details] [diff] [review]
Patch
Review of attachment 8351553 [details] [diff] [review]:
-----------------------------------------------------------------
You should include NullPtr.h here.
Attachment #8351553 -
Flags: review?(ehsan) → review-
Assignee | ||
Comment 7•11 years ago
|
||
Assignee: bugzilla → ehsan
Reporter | ||
Comment 8•11 years ago
|
||
Ok, thanks ;)
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Reporter | ||
Comment 10•11 years ago
|
||
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 784739
User impact if declined: Patch is only relevant for developers
Testing completed (on m-c, etc.): Works fine on m-c
Risk to taking this patch (and alternatives if risky): none, fixes a compile failure for older gcc compilers
String or IDL/UUID changes made by this patch: -
Attachment #8355751 -
Flags: review+
Attachment #8355751 -
Flags: approval-mozilla-aurora?
Reporter | ||
Updated•11 years ago
|
Attachment #8351553 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
This is NPOTB, so it doesn't require approval.
Keywords: checkin-needed
Updated•11 years ago
|
Attachment #8355751 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Reporter | ||
Comment 12•11 years ago
|
||
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Reporter | ||
Updated•11 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•