diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-06 14:22:59 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-10-07 21:56:55 +0200 |
commit | b1c14c30ba99ede85e41934b565195b0cbc69703 (patch) | |
tree | bf97cb604fc9704f60fcd2f480a9b2420b4ea604 /compilerplugins/clang/unusedmethodsremove.cxx | |
parent | 0ec6797f8063a1a82dc492840351c3f0f58088a4 (diff) |
fix various warnings in compilerplugins
These are triggered when using llvm-config --cxxflags for building,
and sometimes there's -Werror. The warnings were mostly unused
variables because of being used only in assert(), or default case
in switch that covers all enums (it's better to not handle default
to get warning if a case is not handled).
Change-Id: I0ecdd1f27390aadf033852b0d1ee0ca424ae3c37
Reviewed-on: https://gerrit.libreoffice.org/80317
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'compilerplugins/clang/unusedmethodsremove.cxx')
-rw-r--r-- | compilerplugins/clang/unusedmethodsremove.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/unusedmethodsremove.cxx b/compilerplugins/clang/unusedmethodsremove.cxx index 1a4adc0a5c6b..417c3778edf0 100644 --- a/compilerplugins/clang/unusedmethodsremove.cxx +++ b/compilerplugins/clang/unusedmethodsremove.cxx @@ -70,6 +70,7 @@ UnusedMethodsRemove::~UnusedMethodsRemove() //Cleanup int rc = munmap(mmappedData, mmapFilesize); assert(rc == 0); + (void)rc; close(mmapFD); } |