Page MenuHomeFreeBSD

Fix build of dspdfviewer on 11.1
ClosedPublic

Authored by adridg on Mar 11 2018, 1:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 21, 11:34 AM
Unknown Object (File)
Mon, Jul 20, 11:54 PM
Unknown Object (File)
Mon, Jul 20, 3:07 AM
Unknown Object (File)
Sun, Jul 19, 11:06 PM
Unknown Object (File)
Sun, Jul 12, 5:25 AM
Unknown Object (File)
Sat, Jun 27, 7:46 AM
Unknown Object (File)
Jun 13 2026, 7:37 AM
Unknown Object (File)
Jun 11 2026, 4:58 PM
Subscribers

Details

Summary

Build fails (while testing update to CMake, unrelated) with:

../hyperlinkarea.cpp:35:18: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]

if ( pixmap == 0 )
               ^
               nullptr

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 15494
Build 15536: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Mar 11 2018, 1:43 PM
graphics/dspdfviewer/files/patch-hyperlinkarea.cpp
14–15

I think it should be == NULL. The problem it tells you is that you are comparing a pointer with an integer.

This revision was automatically updated to reflect the committed changes.