[94437] trunk/dports/php/php-svm/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jun 19 03:31:11 PDT 2012


Revision: 94437
          https://trac.macports.org/changeset/94437
Author:   ryandesign at macports.org
Date:     2012-06-19 03:31:11 -0700 (Tue, 19 Jun 2012)
Log Message:
-----------
php-svm: work around clang -Wreturn-type error (#34904)

Modified Paths:
--------------
    trunk/dports/php/php-svm/Portfile

Modified: trunk/dports/php/php-svm/Portfile
===================================================================
--- trunk/dports/php/php-svm/Portfile	2012-06-19 10:20:50 UTC (rev 94436)
+++ trunk/dports/php/php-svm/Portfile	2012-06-19 10:31:11 UTC (rev 94437)
@@ -22,6 +22,12 @@
 checksums               rmd160  03640c0a8ade422b94d967cc2fae4dc4250a3fe6 \
                         sha256  fcff9000d787423aff05390f0fb7c3d0b13cb23b9b59b6637baed136f911ec0e
 
+# error: non-void function 'php_svm_get_data_from_param' should return a value [-Wreturn-type]
+# https://github.com/ianbarber/php-svm/issues/2
+if {[string match "*clang*" ${configure.compiler}]} {
+    configure.cppflags-append -Wno-return-type
+}
+
 if {${name} != ${subport}} {
     depends_lib-append      port:libsvm
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120619/ccbe4b43/attachment-0001.html>


More information about the macports-changes mailing list