diff options
author | Frits van Bommel <fvbommel@gmail.com> | 2011-04-22 11:36:45 +0000 |
---|---|---|
committer | Frits van Bommel <fvbommel@gmail.com> | 2011-04-22 11:36:45 +0000 |
commit | eab631362d676c0113e052cc7e877eef4da544b8 (patch) | |
tree | ec152c4b725317d0d1078ea3b27e6ceef304e997 /include/llvm/Support/CommandLine.h | |
parent | f4b2f933a98e402083134f710a5d247c42e39ed5 (diff) | |
download | external_llvm-eab631362d676c0113e052cc7e877eef4da544b8.zip external_llvm-eab631362d676c0113e052cc7e877eef4da544b8.tar.gz external_llvm-eab631362d676c0113e052cc7e877eef4da544b8.tar.bz2 |
Comment out some unused parameter names to silence out-of-tree -Wunused warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c57d7dd..d609871 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -334,11 +334,11 @@ struct OptionValueBase : public GenericOptionValue { // Some options may take their value from a different data type. template<class DT> - void setValue(const DT& V) {} + void setValue(const DT& /*V*/) {} - bool compare(const DataType &V) const { return false; } + bool compare(const DataType &/*V*/) const { return false; } - virtual bool compare(const GenericOptionValue& V) const { return false; } + virtual bool compare(const GenericOptionValue& /*V*/) const { return false; } }; // Simple copy of the option value. @@ -904,8 +904,8 @@ void printOptionDiff(const Option &O, const generic_parser_base &P, const DT &V, // type than the option value. e.g. HelpPrinter. template<class ParserDT, class ValDT> struct OptionDiffPrinter { - void print(const Option &O, const parser<ParserDT> P, const ValDT &V, - const OptionValue<ValDT> &Default, size_t GlobalWidth) { + void print(const Option &O, const parser<ParserDT> P, const ValDT &/*V*/, + const OptionValue<ValDT> &/*Default*/, size_t GlobalWidth) { P.printOptionNoValue(O, GlobalWidth); } }; @@ -1287,7 +1287,7 @@ class list : public Option, public list_storage<DataType, Storage> { } // Unimplemented: list options don't currently store their default value. - virtual void printOptionValue(size_t GlobalWidth, bool Force) const {} + virtual void printOptionValue(size_t /*GlobalWidth*/, bool /*Force*/) const {} void done() { addArgument(); @@ -1489,7 +1489,7 @@ class bits : public Option, public bits_storage<DataType, Storage> { } // Unimplemented: bits options don't currently store their default values. - virtual void printOptionValue(size_t GlobalWidth, bool Force) const {} + virtual void printOptionValue(size_t /*GlobalWidth*/, bool /*Force*/) const {} void done() { addArgument(); @@ -1583,7 +1583,7 @@ class alias : public Option { virtual void printOptionInfo(size_t GlobalWidth) const; // Aliases do not need to print their values. - virtual void printOptionValue(size_t GlobalWidth, bool Force) const {} + virtual void printOptionValue(size_t /*GlobalWidth*/, bool /*Force*/) const {} void done() { if (!hasArgStr()) |