fixed regression with g++-4.6 (Ubuntu Linux, 64 Bit). Moved local struct definition out of function scope. No functional change.
This commit is contained in:
parent
a8382ea553
commit
1fd6d36493
|
@ -77,12 +77,6 @@ static OpenMode getMode(const std::string& str)
|
|||
return READ_MODE;
|
||||
return UNKNOWN;
|
||||
}
|
||||
void CheckIO::checkFileUsage()
|
||||
{
|
||||
static const char* _whitelist[] = {
|
||||
"clearerr", "feof", "ferror", "fgetpos", "ftell", "setbuf", "setvbuf", "ungetc"
|
||||
};
|
||||
static const std::set<std::string> whitelist(_whitelist, _whitelist + sizeof(_whitelist)/sizeof(*_whitelist));
|
||||
|
||||
struct Filepointer {
|
||||
OpenMode mode;
|
||||
|
@ -93,6 +87,14 @@ void CheckIO::checkFileUsage()
|
|||
: mode(mode_), mode_indent(0), lastOperation(NONE), op_indent(0) {
|
||||
}
|
||||
};
|
||||
|
||||
void CheckIO::checkFileUsage()
|
||||
{
|
||||
static const char* _whitelist[] = {
|
||||
"clearerr", "feof", "ferror", "fgetpos", "ftell", "setbuf", "setvbuf", "ungetc"
|
||||
};
|
||||
static const std::set<std::string> whitelist(_whitelist, _whitelist + sizeof(_whitelist)/sizeof(*_whitelist));
|
||||
|
||||
std::map<unsigned int, Filepointer> filepointers;
|
||||
|
||||
const SymbolDatabase* symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||
|
|
Loading…
Reference in New Issue