Commit fc862838 authored by tsdgeos's avatar tsdgeos Committed by Brad King
Browse files

automoc: avoid more compiler warnings in linker-warning-silencing code

Revise the approach from commit 844244cc (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
parent 9b4efcb9
Pipeline #295850 waiting for manual action with stages
in 27 minutes and 55 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment