diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-12-03 08:47:04 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-01-07 00:38:41 +0000 |
commit | 290dc3a180ca1023f18af4eb47911b16af82eb93 (patch) | |
tree | 9eee5d8d20aed735878bbc03240435fb74060b54 /src/render/backend/renderview.cpp | |
parent | 96fec521d8e52d6ad3e63a9ad1126fefc53b1b82 (diff) |
Fix build with ICC during -Werror: unused local variable
This variable is in an anonymous namespace, so ICC rightly finds out
that nothing uses it. Declare our intentions properly in the comment and
add the Q_DECL_UNUSED to tell the compiler to shut up.
error #2415: variable "Qt3DRender::Render::<unnamed>::qNodeIdTypeId" of static storage duration was declared but never referenced
Change-Id: I73fa1e59a4844c43a109fffd148cccdc579c3851
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/renderview.cpp')
-rw-r--r-- | src/render/backend/renderview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/backend/renderview.cpp b/src/render/backend/renderview.cpp index 60c7af6a8..1d6bc34aa 100644 --- a/src/render/backend/renderview.cpp +++ b/src/render/backend/renderview.cpp @@ -84,7 +84,8 @@ namespace Render { namespace { -const int qNodeIdTypeId = qMetaTypeId<Qt3DCore::QNodeId>(); +// register our QNodeId's as a metatype during program loading +const int Q_DECL_UNUSED qNodeIdTypeId = qMetaTypeId<Qt3DCore::QNodeId>(); const int MAX_LIGHTS = 8; |