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)
Prepare for Qt 5.6, which will pass -std=gnu++11 by default when the compiler
supports it, and the build currently does not work:
../libqtelegram-aseman-edition-6.1-stable/telegram/types/accountdaysttl.cpp:51:10: error: case value evaluates to 3100684255, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
case typeAccountDaysTTL: {
Note that Qt 5.7 will start requiring C++11 support, so this will need to be
fixed properly in the future.
PR: 211916