From f6fba9e059d74a732a978234ae8271ff32ffd929 2014-10-16 10:39:02 From: Miikka Heikkinen Date: 2014-10-16 10:39:02 Subject: [PATCH] Suppress a warning in msvc 64bit builds Using std:sort causes warning C4267 in 64bit msvc builds, because size_t and int are of different size. There should never be a case where list indexes grow so large that this causes problems, so just suppress the warning. Change-Id: I0e4904f88542178177afc51a82bbbd18b094eb32 Reviewed-by: Titta Heikkala --- diff --git a/src/charts/charts.pro b/src/charts/charts.pro index 8e18fb7..c615e1e 100644 --- a/src/charts/charts.pro +++ b/src/charts/charts.pro @@ -80,3 +80,9 @@ OTHER_FILES += doc/qtcharts.qdocconf \ CONFIG(debug, debug|release) { DEFINES += BUILD_PRIVATE_UNIT_TESTS } + +msvc { + # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit + # builds resulting from usage of str::sort + QMAKE_CXXFLAGS_WARN_ON += -wd4267 +}