Page MenuHomePhabricator

Build error in CppMicroServices with Clang 3.4
Closed, ResolvedPublic

Description

The build fails with the following error:

/build/niftk-clang-release/MITK-src/Core/CppMicroServices/src/module/usModuleResourceBuffer.cpp:35:26: error: unused variable 'BUFFER_SIZE'

[-Werror,-Wunused-const-variable]

static const std::size_t BUFFER_SIZE = 1024;

^

1 error generated.

Event Timeline

After commenting out the line the code builds fine.

@Core reviewer: trivial fix
@Miklos: I cherry-picked the commit, since the branch structure of the pull request was a bit strange

[1dcb34]: Merge branch 'bug-16298-clang-34-microservice-fix'

Merged commits:

2013-10-20 16:06:59 Miklos Espak [02aa95]
Unused static declaration removed