Browse Source

use unsued variable

master
Odilitime 5 years ago
parent
commit
68f5538025
  1. 3
      src/CFGFileParser.cpp

3
src/CFGFileParser.cpp

@ -10,6 +10,9 @@ CFGFileParser::CFGFileParser(const char* filename){ @@ -10,6 +10,9 @@ CFGFileParser::CFGFileParser(const char* filename){
stat(filename, cfg_fileinfo);
buffer = static_cast<char*>(tlsf_calloc(cfg_fileinfo->st_size & INT_MAX, sizeof(char) & INT_MAX));
size_t bytesRead = fread(buffer, sizeof(char) & INT_MAX, cfg_fileinfo->st_size & INT_MAX, cfg_file);
if (!bytesRead) {
std::cout << "no config" << std::endl;
}
fclose(cfg_file);
}

Loading…
Cancel
Save