Bug 171298 - [patch] fix build of devel/tinyq with clang
Summary: [patch] fix build of devel/tinyq with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 23:30 UTC by Pawel Worach
Modified: 2012-09-06 07:10 UTC (History)
0 users

See Also:


Attachments
file.diff (786 bytes, patch)
2012-09-03 23:30 UTC, Pawel Worach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!