From 3b33eabc225ea121cadf5fafdec11fb0be10cca7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 26 Feb 2017 15:52:00 +0200 Subject: [PATCH] Clang warning. --HG-- branch : develop --- src/libs/vlayout/vlayoutgenerator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vlayout/vlayoutgenerator.cpp b/src/libs/vlayout/vlayoutgenerator.cpp index 362a7f501..2e9f703c3 100644 --- a/src/libs/vlayout/vlayoutgenerator.cpp +++ b/src/libs/vlayout/vlayoutgenerator.cpp @@ -46,7 +46,12 @@ VLayoutGenerator::VLayoutGenerator(QObject *parent) paperWidth(0), margins(), usePrinterFields(true), +#ifdef Q_CC_MSVC + // See https://stackoverflow.com/questions/15750917/initializing-stdatomic-bool stopGeneration(ATOMIC_VAR_INIT(false)), +#else + stopGeneration(false), +#endif state(LayoutErrors::NoError), shift(0), rotate(true),