diff options
author | Albert Astals Cid <aacid@kde.org> | 2022-08-28 22:14:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-30 19:21:12 (GMT) |
commit | fc8628389fc0fac964d699eb471f981bcd4edf60 (patch) | |
tree | e89d9ac8e8d6f772fde1a20c43a3e1789b4d3ffc /Source/cmQtAutoMocUic.cxx | |
parent | 9b4efcb92fc200d20b1ff3027cf819232db7060c (diff) | |
download | CMake-fc8628389fc0fac964d699eb471f981bcd4edf60.zip CMake-fc8628389fc0fac964d699eb471f981bcd4edf60.tar.gz CMake-fc8628389fc0fac964d699eb471f981bcd4edf60.tar.bz2 |
automoc: avoid more compiler warnings in linker-warning-silencing code
Revise the approach from commit 844244ccdc (automoc: avoid compiler
warnings in linker-warning-silencing code, 2022-08-10, v3.24.1~6^2)
to avoid `-Wmissing-declarations` warnings too.
Issue: #23823
Diffstat (limited to 'Source/cmQtAutoMocUic.cxx')
-rw-r--r-- | Source/cmQtAutoMocUic.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx index 8c09b56..8adaa6c 100644 --- a/Source/cmQtAutoMocUic.cxx +++ b/Source/cmQtAutoMocUic.cxx @@ -2183,6 +2183,9 @@ void cmQtAutoMocUicT::JobMocsCompilationT::Process() content += "// No files found that require moc or the moc files are " "included\n" "void " + + functionName + + "();\n" + "void " + functionName + "() {}\n"; } else { // Valid content |