From fc8628389fc0fac964d699eb471f981bcd4edf60 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 29 Aug 2022 00:14:53 +0200 Subject: 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 --- Source/cmQtAutoMocUic.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12