Bug 202493

Summary: Fix devel/k8048 builds with clang 3.7.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Muhammad Moinur Rahman <bofh>
Status: Closed FIXED    
Severity: Affects Some People Flags: bofh: maintainer-feedback+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 201377    
Attachments:
Description Flags
Fix devel/k8048 pedantic-errors with clang 3.7.0 none

Description Dimitry Andric freebsd_committer freebsd_triage 2015-08-19 19:37:52 UTC
Created attachment 160112 [details]
Fix devel/k8048 pedantic-errors with clang 3.7.0

During the exp-run in bug 201377, it was found that devel/k8048 gives errors with a recent clang 3.7.0 snapshot:

http://package18.nyi.freebsd.org/data/headi386PR201377-default/2015-07-31_12h04m22s/logs/errors/k8048-3.05.log

This is because the port compiles with -pedantic-errors, and attempts to print an uint8_t * using the %p format.  This can be fixed by casting the pointer to void *.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-08-20 10:41:20 UTC
A commit references this bug:

Author: bofh
Date: Thu Aug 20 10:40:50 UTC 2015
New revision: 394846
URL: https://svnweb.freebsd.org/changeset/ports/394846

Log:
  devel/k8048: Fix pedantic-errors with clang 3.7.0 [1]

  - Fix patchfiles to be 'make makepatch' compatible

  PR:		202493 [1]
  Submitted by:	dim [1]

Changes:
  head/devel/k8048/files/patch-Makefile
  head/devel/k8048/files/patch-Src-Makefile
  head/devel/k8048/files/patch-io.c