mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 19:46:41 -04:00
Instead of explicitely disabling c++11 mode as the code uses narrowing of unsigned ints to ints, simply pass -no-c++11-narrowing if the compiler is clang. This is done in preparation for Qt 5.7.1, which requires c++11 mode. Approved by: rakuco (mentor)
18 lines
541 B
Prolog
18 lines
541 B
Prolog
C++11 does not allow narrowing of integer types by default -- however multiple
|
|
constants defined in the code are too large to fit into a signed int, and rely
|
|
on the narrowing behaviour.
|
|
|
|
--- telegramqml.pro.orig 2017-02-11 13:02:31 UTC
|
|
+++ telegramqml.pro
|
|
@@ -31,6 +31,11 @@ linux {
|
|
}
|
|
}
|
|
|
|
+# Explictely allow narrowing of integer types
|
|
+clang {
|
|
+ QMAKE_CXXFLAGS += -Wno-c++11-narrowing
|
|
+}
|
|
+
|
|
contains(BUILD_MODE,lib) {
|
|
isEmpty(PREFIX) {
|
|
isEmpty(INSTALL_HEADERS_PREFIX): INSTALL_HEADERS_PREFIX = $$[QT_INSTALL_HEADERS]
|