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)
Fri, Apr 19, 2:53 PM
Unknown Object (File)
Jan 16 2024, 6:14 AM
Unknown Object (File)
Dec 29 2023, 7:18 AM
Unknown Object (File)
Dec 24 2023, 12:43 PM
Unknown Object (File)
Dec 22 2023, 11:49 PM
Unknown Object (File)
Nov 19 2023, 6:42 PM
Unknown Object (File)
Oct 27 2023, 3:15 PM
Unknown Object (File)
Sep 1 2023, 1:23 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #40163)

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.