Fix various compatibility problems with newer GCC. This is an amalgamation of these upstream commits: https://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=904949c9026cb772dc93fbe0947a252ef47127f4 https://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=ab9fe5cb9b85c5afab94f2a7f4b6d7d473c14ee9 diff --git a/lib/srchilite/fileutil.cc b/lib/srchilite/fileutil.cc index 59a6d64..963178c 100644 --- a/lib/srchilite/fileutil.cc +++ b/lib/srchilite/fileutil.cc @@ -48,7 +48,7 @@ void set_file_util_verbose(bool b) { // FIXME avoid using a global variable std::string start_path; -string readFile(const string &fileName) throw (IOException) { +string readFile(const string &fileName) { ifstream file(fileName.c_str()); if (!file.is_open()) { diff --git a/lib/srchilite/fileutil.h b/lib/srchilite/fileutil.h index 7335a9b..042eb56 100644 --- a/lib/srchilite/fileutil.h +++ b/lib/srchilite/fileutil.h @@ -27,7 +27,7 @@ extern std::string start_path; * @return the contents of the file * @throw IOException */ -string readFile(const string &fileNam
aboutsummaryrefslogtreecommitdiff |