From 559c5be2fed1f035d1d7ee22ff5d6f88d227524d Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Wed, 5 Dec 2018 01:51:41 +0330 Subject: [PATCH] MSVC: Define _CRT_NO_VA_START_VALIDATION Defined to fix error: C2338: va_start argument must not have reference type and must not be parenthesized --- lib/jkqtplotter.pri | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/jkqtplotter.pri b/lib/jkqtplotter.pri index 525bf47bc2..9f9840122b 100644 --- a/lib/jkqtplotter.pri +++ b/lib/jkqtplotter.pri @@ -5,6 +5,9 @@ QMAKE_CXXFLAGS += /EHsc # To enable M_PI, M_E,... DEFINES += _USE_MATH_DEFINES + # To fix error: C2338: va_start argument must not + # have reference type and must not be parenthesized + DEFINES += _CRT_NO_VA_START_VALIDATION } HEADERS += $$PWD/jkqtplotter/jkqtpbaseplotter.h \