[QGIS-Developer] FALLTHROUGH

Richard Duivenvoorde rdmailings at duif.net
Mon Jul 17 08:14:38 PDT 2017


Hi,

Compiling master / Debian testing I get a lot of the warning as seen below.

Is there some compile option I have to add? Of is it something temporarily?

Regards,

Richard


In file included from
/home/richard/dev/qgis/git/qgis/src/core/qgsmaplayerstore.h:23:0,
                 from
/home/richard/dev/qgis/git/qgis/src/core/qgsproject.h:42,
                 from
/home/richard/dev/qgis/git/qgis/src/core/expression/qgsexpressionutils.h:26,
                 from
/home/richard/dev/qgis/git/qgis/src/core/expression/qgsexpressionnodeimpl.cpp:17:
/home/richard/dev/qgis/git/qgis/src/core/expression/qgsexpressionnodeimpl.cpp:
In member function ‘virtual QVariant
QgsExpressionNodeBinaryOperator::evalNode(QgsExpression*, const
QgsExpressionContext*)’:
/home/richard/dev/qgis/git/qgis/src/core/qgis.h:389:21: warning:
attributes at the beginning of statement are ignored [-Wattributes]
 #define FALLTHROUGH [[gnu::fallthrough]];
                     ^
/home/richard/dev/qgis/git/qgis/src/core/expression/qgsexpressionnodeimpl.cpp:182:7:
note: in expansion of macro ‘FALLTHROUGH’
       FALLTHROUGH;
       ^~~~~~~~~~~


More information about the QGIS-Developer mailing list