diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-10 10:13:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-10 10:13:55 +0200 |
commit | 4ad81437b15fc6856f9848a1d3e795b1cf78030f (patch) | |
tree | 7e9efd6e66fc7061335991aa3ec5a08757c22c74 /cli/source.cxx | |
parent | b6bad2f5ed83ea08a596dc0d39b6b134357b04a6 (diff) |
Get rid of warning in generated code if option class is empty
Diffstat (limited to 'cli/source.cxx')
-rw-r--r-- | cli/source.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/source.cxx b/cli/source.cxx index 1c0b890..61cc1c0 100644 --- a/cli/source.cxx +++ b/cli/source.cxx @@ -350,6 +350,7 @@ namespace traverse (type& c) { string name (escape (c.name ())); + bool ho (has<semantics::option> (c)); os << "// " << name << endl << "//" << endl @@ -447,7 +448,7 @@ namespace if (usage) { os << "void " << name << "::" << endl - << "print_usage (::std::ostream& os)" + << "print_usage (::std::ostream&" << (ho ? " os" : "") << ")" << "{"; // Calculate option length. |