[llvm-commits] [llvm] r129988 - /llvm/trunk/include/llvm/Support/CommandLine.h
Frits van Bommel
fvbommel at gmail.com
Fri Apr 22 04:36:45 PDT 2011
Author: fvbommel
Date: Fri Apr 22 06:36:45 2011
New Revision: 129988
URL: http://llvm.org/viewvc/llvm-project?rev=129988&view=rev
Log:
Comment out some unused parameter names to silence out-of-tree -Wunused warnings.
Modified:
llvm/trunk/include/llvm/Support/CommandLine.h
Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=129988&r1=129987&r2=129988&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Fri Apr 22 06:36:45 2011
@@ -334,11 +334,11 @@
// 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 @@
// 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 @@
}
// 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 @@
}
// 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 @@
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())
More information about the llvm-commits
mailing list