Bug 174702

Summary: [PATCH] devel/libowfat fails to build with clang on CURRENT
Product: Ports & Packages Reporter: Fabian Keil <fk>
Component: Individual Port(s)Assignee: David Thiel <lx>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.txt none

Description Fabian Keil 2012-12-25 13:10:00 UTC
The attached patch lets devel/libowfat build with clang on CURRENT.

Without the patch the build fails with:

In file included from t.c:27:
./CAS.h:56:3: error: void function 'atomic_add' should not return a value [-Wreturn-type]
  return __sync_add_and_fetch(x,val);
  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

The patch has been sent to the upstream as well.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-25 13:10:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lx

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pietro Cerutti freebsd_committer freebsd_triage 2013-02-07 12:40:13 UTC
State Changed
From-To: open->closed

Fixed in r311827. Thanks!