Bug 171298

Summary: [patch] fix build of devel/tinyq with clang
Product: Ports & Packages Reporter: Pawel Worach <pawel.worach>
Component: Individual Port(s)Assignee: Jason Helfman <jgh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Pawel Worach 2012-09-03 23:30:07 UTC
This build with clang.

In file included from project.cpp:46:
..work/tinyq-3.0.6/include/qvaluestack.h:53:32: error: use of undeclared identifier 'append'
    void  push( const T& d ) { append(d); }
                               ^
                               this->

Fix: Patch attached with submission follows:
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2012-09-06 06:59:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-09-06 07:07:05 UTC
Author: jgh
Date: Thu Sep  6 06:06:51 2012
New Revision: 303743
URL: http://svn.freebsd.org/changeset/ports/303743

Log:
  - fix build on clang
  
  PR:	171298
  Submitted by:	pawel.worach@gmail.com

Modified:
  head/devel/tinyq/files/patch-include-qvaluestack.h

Modified: head/devel/tinyq/files/patch-include-qvaluestack.h
==============================================================================
--- head/devel/tinyq/files/patch-include-qvaluestack.h	Thu Sep  6 05:57:58 2012	(r303742)
+++ head/devel/tinyq/files/patch-include-qvaluestack.h	Thu Sep  6 06:06:51 2012	(r303743)
@@ -1,6 +1,12 @@
---- include/qvaluestack.h.orig	Thu Dec 21 20:51:31 2006
-+++ include/qvaluestack.h	Thu Dec 21 20:52:42 2006
-@@ -55,7 +55,7 @@
+--- include/qvaluestack.h.orig	2002-10-17 15:08:58.000000000 +0000
++++ include/qvaluestack.h	2012-09-03 22:17:15.000000000 +0000
+@@ -50,12 +50,12 @@
+ public:
+     QValueStack() {}
+    ~QValueStack() {}
+-    void  push( const T& d ) { append(d); }
++    void  push( const T& d ) { this->append(d); }
+     T pop()
      {
  	T elem( this->last() );
  	if ( !this->isEmpty() )
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Jason Helfman freebsd_committer freebsd_triage 2012-09-06 07:07:27 UTC
State Changed
From-To: open->closed

Committed. Thanks!