Bug 226524

Summary: graphics/dspdfviewer fails to build on 11.1
Product: Ports & Packages Reporter: Adriaan de Groot <adridg>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: santhosh.raju
Priority: --- Flags: bugzilla: maintainer-feedback? (santhosh.raju)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D14652

Description Adriaan de Groot freebsd_committer freebsd_triage 2018-03-11 13:02:52 UTC
../hyperlinkarea.cpp:35:18: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
  if ( pixmap == 0 )
                 ^
                 nullptr

A patch is in the review. This build failer showed up while updating CMake to 3.11-rc3, which may have introduced other C++ flags by default.
Comment 1 Adriaan de Groot freebsd_committer freebsd_triage 2018-03-11 13:03:34 UTC
Link to FreeBSD Phab review with the patch.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-03-20 13:02:11 UTC
A commit references this bug:

Author: adridg
Date: Tue Mar 20 13:01:43 UTC 2018
New revision: 465086
URL: https://svnweb.freebsd.org/changeset/ports/465086

Log:
  Fix graphics/dspdfviewer build with modern Clang. The error message
  is in the (new) patch.

  PR:		226524
  Approved by:	tcberner (mentor, implicit)
  Differential Revision:	https://reviews.freebsd.org/D14652

Changes:
  head/graphics/dspdfviewer/files/patch-hyperlinkarea.cpp