diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-23 23:17:44 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-24 14:44:06 +0200 |
commit | 669a8e9cba424556bf7f2fb245327a0433f561be (patch) | |
tree | 4a933a94b559dc4377fc4c08dce3e31a3a80a258 | |
parent | 69fdbc73dfca1d9b43d5e9eee11052a167afe7c5 (diff) | |
download | mxs-utils-669a8e9cba424556bf7f2fb245327a0433f561be.tar.gz mxs-utils-669a8e9cba424556bf7f2fb245327a0433f561be.tar.xz |
we realy don't need these parameters
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | common/DataSource.cpp | 2 | ||||
-rw-r--r-- | common/DataSource.h | 4 | ||||
-rw-r--r-- | common/DataTarget.cpp | 2 | ||||
-rw-r--r-- | common/EncoreBootImage.h | 4 | ||||
-rw-r--r-- | common/IVTDataSource.h | 2 | ||||
-rw-r--r-- | common/SearchPath.cpp | 2 | ||||
-rw-r--r-- | common/SourceFile.h | 12 | ||||
-rw-r--r-- | common/StringMatcher.h | 2 | ||||
-rw-r--r-- | elftosb2/ElftosbAST.cpp | 2 | ||||
-rw-r--r-- | elftosb2/ElftosbAST.h | 2 | ||||
-rw-r--r-- | elftosb2/elftosb_parser.y | 2 |
11 files changed, 18 insertions, 18 deletions
diff --git a/common/DataSource.cpp b/common/DataSource.cpp index fda7596..0d91dbf 100644 --- a/common/DataSource.cpp +++ b/common/DataSource.cpp @@ -38,7 +38,7 @@ DataSource::PatternSegment::PatternSegment(DataSource & source, uint32_t pattern { } -unsigned DataSource::PatternSegment::getData(unsigned offset, unsigned maxBytes, uint8_t * buffer) +unsigned DataSource::PatternSegment::getData(unsigned /*offset*/, unsigned maxBytes, uint8_t * buffer) { memset(buffer, 0, maxBytes); diff --git a/common/DataSource.h b/common/DataSource.h index 4fb9f00..fc71576 100644 --- a/common/DataSource.h +++ b/common/DataSource.h @@ -181,7 +181,7 @@ public: virtual unsigned getSegmentCount() { return 1; } //! \brief Returns this object, as it is its own segment. - virtual DataSource::Segment * getSegmentAt(unsigned index) { return this; } + virtual DataSource::Segment * getSegmentAt(unsigned /*index*/) { return this; } //! \brief Assignment operator, sets the pattern value and length. PatternSource & operator = (const SizedIntegerValue & value) { setPattern(value); return *this; } @@ -209,7 +209,7 @@ public: virtual unsigned getSegmentCount() { return 1; } //! \brief Returns this object, as it is its own segment. - virtual DataSource::Segment * getSegmentAt(unsigned index) { return this; } + virtual DataSource::Segment * getSegmentAt(unsigned /*index*/) { return this; } //! \name Segment methods //@{ diff --git a/common/DataTarget.cpp b/common/DataTarget.cpp index aab2c7b..5d03cd3 100644 --- a/common/DataTarget.cpp +++ b/common/DataTarget.cpp @@ -44,7 +44,7 @@ DataTarget::AddressRange ConstantDataTarget::getRangeForSegment(DataSource & sou //! //! \exception elftosb::semantic_error This exception is thrown if the \a segment //! does not have a natural location associated with it. -DataTarget::AddressRange NaturalDataTarget::getRangeForSegment(DataSource & source, DataSource::Segment & segment) +DataTarget::AddressRange NaturalDataTarget::getRangeForSegment(DataSource & /*source*/, DataSource::Segment & segment) { if (!segment.hasNaturalLocation()) { diff --git a/common/EncoreBootImage.h b/common/EncoreBootImage.h index 1e78aee..c786f82 100644 --- a/common/EncoreBootImage.h +++ b/common/EncoreBootImage.h @@ -314,7 +314,7 @@ public: //! //! \return The number of cipher blocks copied into \a data. //! \retval 0 No more blocks are available and nothing was written to \a data. - virtual unsigned getBlocks(unsigned offset, unsigned maxCount, cipher_block_t * data) { return 0; } + virtual unsigned getBlocks(unsigned /*offset*/, unsigned /*maxCount*/, cipher_block_t * /*data*/) { return 0; } //@} //! \brief Print out a string representation of the object. @@ -396,7 +396,7 @@ public: //! //! \return The number of data blocks copied into \a data. //! \retval 0 No more blocks are available and nothing was written to \a data. - virtual unsigned getDataBlocks(unsigned offset, unsigned maxCount, cipher_block_t * data) { return 0; } + virtual unsigned getDataBlocks(unsigned /*offset*/, unsigned /*maxCount*/, cipher_block_t * /*data*/) { return 0; } //@} protected: diff --git a/common/IVTDataSource.h b/common/IVTDataSource.h index 1890bdd..3fa18fd 100644 --- a/common/IVTDataSource.h +++ b/common/IVTDataSource.h @@ -235,7 +235,7 @@ public: virtual unsigned getSegmentCount() { return 1; } //! \brief Returns this object, as it is its own segment. - virtual DataSource::Segment * getSegmentAt(unsigned index) { return this; } + virtual DataSource::Segment * getSegmentAt(unsigned /*index*/) { return this; } //! \name Segment methods //@{ diff --git a/common/SearchPath.cpp b/common/SearchPath.cpp index 8a8a742..5c876ca 100644 --- a/common/SearchPath.cpp +++ b/common/SearchPath.cpp @@ -51,7 +51,7 @@ void PathSearcher::addSearchPath(std::string & path) //! \retval true A matching file was found among the search paths. The contents of \a result //! are a valid path. //! \retval false No match could be made. \a result has been left unmodified. -bool PathSearcher::search(const std::string & base, target_type_t targetType, bool searchCwd, std::string & result) +bool PathSearcher::search(const std::string & base, target_type_t /*targetType*/, bool searchCwd, std::string & result) { FILE * tempFile; bool absolute = isAbsolute(base); diff --git a/common/SourceFile.h b/common/SourceFile.h index 773dd5b..abccb25 100644 --- a/common/SourceFile.h +++ b/common/SourceFile.h @@ -87,7 +87,7 @@ public: //! The \a selector object is used to perform the section name comparison. //! If the file does not support named sections, or if there is not a //! section with the given name, this method may return NULL. - virtual DataSource * createDataSource(StringMatcher & matcher) { return NULL; } + virtual DataSource * createDataSource(StringMatcher & /*matcher*/) { return NULL; } //! \brief Creates a data source out of one section of the file. virtual DataSource * createDataSource(const std::string & section); @@ -104,21 +104,21 @@ public: //! \name Data target creation //@{ - virtual DataTarget * createDataTargetForSection(const std::string & section) { return NULL; } - virtual DataTarget * createDataTargetForSymbol(const std::string & symbol) { return NULL; } + virtual DataTarget * createDataTargetForSection(const std::string & /*section*/) { return NULL; } + virtual DataTarget * createDataTargetForSymbol(const std::string & /*symbol*/) { return NULL; } virtual DataTarget * createDataTargetForEntryPoint(); //@} //! \name Symbols //@{ //! \brief Returns whether a symbol exists in the source file. - virtual bool hasSymbol(const std::string & name) { return false; } + virtual bool hasSymbol(const std::string & /*name*/) { return false; } //! \brief Returns the value of a symbol. - virtual uint32_t getSymbolValue(const std::string & name) { return 0; } + virtual uint32_t getSymbolValue(const std::string & /*name*/) { return 0; } //! \brief Returns the size of a symbol. - virtual unsigned getSymbolSize(const std::string & name) { return 0; } + virtual unsigned getSymbolSize(const std::string & /*name*/) { return 0; } //@} protected: diff --git a/common/StringMatcher.h b/common/StringMatcher.h index e8074ff..01906cd 100644 --- a/common/StringMatcher.h +++ b/common/StringMatcher.h @@ -32,7 +32,7 @@ class WildcardMatcher : public StringMatcher { public: //! \brief Always returns true, indicating a positive match. - virtual bool match(const std::string & testValue) { return true; } + virtual bool match(const std::string & /*testValue*/) { return true; } }; /*! diff --git a/elftosb2/ElftosbAST.cpp b/elftosb2/ElftosbAST.cpp index 197f4c6..749da62 100644 --- a/elftosb2/ElftosbAST.cpp +++ b/elftosb2/ElftosbAST.cpp @@ -263,7 +263,7 @@ SymbolRefExprASTNode::SymbolRefExprASTNode(const SymbolRefExprASTNode & other) } } -void SymbolRefExprASTNode::printTree(int indent) const +void SymbolRefExprASTNode::printTree(int /*indent*/) const { } diff --git a/elftosb2/ElftosbAST.h b/elftosb2/ElftosbAST.h index cb70f49..230708d 100644 --- a/elftosb2/ElftosbAST.h +++ b/elftosb2/ElftosbAST.h @@ -243,7 +243,7 @@ public: //! The default implementation simply return this node unmodified. This //! method is responsible for deleting any nodes that are no longer needed. //! (?) how to delete this? - virtual ExprASTNode * reduce(EvalContext & context) { return this; } + virtual ExprASTNode * reduce(EvalContext & /*context*/) { return this; } int_size_t resultIntSize(int_size_t a, int_size_t b); }; diff --git a/elftosb2/elftosb_parser.y b/elftosb2/elftosb_parser.y index 7c33652..880d6aa 100644 --- a/elftosb2/elftosb_parser.y +++ b/elftosb2/elftosb_parser.y @@ -971,7 +971,7 @@ static int yylex(YYSTYPE * lvalp, YYLTYPE * yylloc, ElftosbLexer * lexer) return token; } -static void yyerror(YYLTYPE * yylloc, ElftosbLexer * lexer, CommandFileASTNode ** resultAST, const char * error) +static void yyerror(YYLTYPE * yylloc, ElftosbLexer * /*lexer*/, CommandFileASTNode ** /*resultAST*/, const char * error) { throw syntax_error(format_string("line %d: %s\n", yylloc->m_firstLine, error)); } |