diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 3167c7fa2..f88e1707e 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -229,7 +229,7 @@ void cmDocumentation::PrintUsageSection(std::ostream& os, const cmDocumentationEntry* section) { if(!section) { return; } - std::ios::fmtflags flags = os.flags(); + long flags = static_cast(os.flags()); os.setf(flags | std::ios::left); for(const cmDocumentationEntry* op = section; op->brief; ++op) {