summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQtAutoMocUic.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index 0d38dfb..6e8ada1 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/Source/cmQtAutoMocUic.cxx
@@ -2175,7 +2175,14 @@ void cmQtAutoMocUicT::JobMocsCompilationT::Process()
// Placeholder content
content += "// No files found that require moc or the moc files are "
"included\n"
- "enum some_compilers { need_more_than_nothing };\n";
+ "struct cmake_automoc_silence_linker_warning{\n"
+ " virtual ~cmake_automoc_silence_linker_warning();\n"
+ "};\n"
+ "\n"
+ "inline "
+ "cmake_automoc_silence_linker_warning::"
+ "~cmake_automoc_silence_linker_warning()\n"
+ "{}\n";
} else {
// Valid content
const bool mc = this->BaseConst().MultiConfig;