mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
x11-toolkits/gtkmathview: Fix build with Clang 6
View.cc:294:10: error: no viable conversion from returned value of type 'bool' to function return type 'SmartPtr<Element>' return false; ^~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/gtkmathview-0.8.0_9.log cmex10.cc:27:3: error: constant expression evaluates to 4205933842 which cannot be narrowed to type 'int' [-Wc++11-narrowing] 0xfab17512, ^~~~~~~~~~ SVG_RenderingContext.cc:67:25: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] metadata("Created by "PACKAGE" version "VERSION); ^
This commit is contained in:
parent
1bf5271302
commit
b363253376
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478041
@ -19,13 +19,15 @@ LIB_DEPENDS= libpopt.so:devel/popt \
|
||||
libgmetadom_gdome_cpp_smart.so:textproc/gmetadom
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= gmake libtool pathfix pkgconfig
|
||||
USES= compiler gmake libtool pathfix pkgconfig
|
||||
USE_GNOME= gtk20 libxml2 pangox-compat
|
||||
INSTALL_TARGET= install-strip
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
||||
CXXFLAGS_clang= -Wno-c++11-narrowing
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '/-lstdc++/d' ${WRKSRC}/src/Makefile.in \
|
||||
|
@ -0,0 +1,16 @@
|
||||
SVG_RenderingContext.cc:67:25: error: invalid suffix on literal; C++11 requires a
|
||||
space between literal and identifier [-Wreserved-user-defined-literal]
|
||||
metadata("Created by "PACKAGE" version "VERSION);
|
||||
^
|
||||
|
||||
--- src/backend/svg/SVG_RenderingContext.cc.orig 2018-08-25 14:04:53 UTC
|
||||
+++ src/backend/svg/SVG_RenderingContext.cc
|
||||
@@ -64,7 +64,7 @@ void
|
||||
SVG_RenderingContext::documentStart(const BoundingBox& bbox)
|
||||
{
|
||||
beginDocument(bbox);
|
||||
- metadata("Created by "PACKAGE" version "VERSION);
|
||||
+ metadata("Created by " PACKAGE " version " VERSION);
|
||||
}
|
||||
|
||||
void
|
@ -0,0 +1,15 @@
|
||||
View.cc:294:10: error: no viable conversion from returned value of type 'bool' to function return type 'SmartPtr<Element>'
|
||||
return false;
|
||||
^~~~~
|
||||
|
||||
--- src/engine/common/View.cc.orig 2018-08-25 13:57:22 UTC
|
||||
+++ src/engine/common/View.cc
|
||||
@@ -291,7 +291,7 @@ View::getCharAt(const scaled& x, const scaled& y, Char
|
||||
}
|
||||
}
|
||||
|
||||
- return false;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
bool
|
Loading…
Reference in New Issue
Block a user