Bug 203160

Summary: Fix devel/codeblocks build with clang 3.7.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed FIXED    
Severity: Affects Some People CC: emaste, miwi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199935
Bug Depends on:    
Bug Blocks: 201377    
Attachments:
Description Flags
Fix devel/codeblocks build with clang 3.7.0 none

Description Dimitry Andric freebsd_committer 2015-09-16 20:01:28 UTC
Created attachment 161124 [details]
Fix devel/codeblocks build with clang 3.7.0

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

http://package18.nyi.freebsd.org/data/headamd64PR201377-default/2015-09-16_07h08m17s/logs/errors/codeblocks-13.12_4.log

This is because cbthreadpool.h uses throw(), which should be replaced with noexcept for C++11.  In the attached patch, I have made this conditional on whether the noexcept feature is available.

Additionally, I disabled the -Wundefined-bool-conversion warning, since it happens quite a lot of times in Code::Blocks, and it seems too much churn to fix.
Comment 1 commit-hook freebsd_committer 2015-12-22 15:23:21 UTC
A commit references this bug:

Author: miwi
Date: Tue Dec 22 15:22:48 UTC 2015
New revision: 404241
URL: https://svnweb.freebsd.org/changeset/ports/404241

Log:
  - Fix build with clang 3.7.0

  PR:		203160
  Submitted by:	dim
  Approved by:	mat (mentor)
  Differential Revision:	D4653

Changes:
  head/devel/codeblocks/Makefile
  head/devel/codeblocks/files/
  head/devel/codeblocks/files/patch-src__include__cbthreadpool.h