summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-10 08:22:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-10 14:49:23 +0200
commita55711ad4f6f0a39fd26bcd682a1a81b4a6c6fb6 (patch)
tree427c1375b436082899bd1d8db2e8fc4d47378bb3 /codemaker
parentc8c4f35ae3e9721aecba0987359f5e106a9041eb (diff)
Generate UNO exception classes as SAL_WARN_UNUSED
...to find more places like 09978dd1fc18ce1ae707bc9e4ea1d2745ff07b61 "clang-tidy bugprone-unused-return-value" Change-Id: Ibe8b6790c701dc8270295dd1e2cbc9023b5ce018 Reviewed-on: https://gerrit.libreoffice.org/60234 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index dd6476ff9f89..722846b0efa6 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -3035,7 +3035,7 @@ void ExceptionType::dumpComprehensiveGetCppuType(FileStream & out)
void ExceptionType::dumpDeclaration(FileStream & out)
{
- out << "\nclass CPPU_GCC_DLLPUBLIC_EXPORT " << id_;
+ out << "\nclass CPPU_GCC_DLLPUBLIC_EXPORT SAL_WARN_UNUSED " << id_;
OUString base(entity_->getDirectBase());
if (!base.isEmpty()) {
out << " : public " << codemaker::cpp::scopedCppName(u2b(base));