gcc11.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 904949c9026cb772dc93fbe0947a252ef47127f4 Mon Sep 17 00:00:00 2001
  2. From: Tom Tromey <tom@tromey.com>
  3. Date: Wed, 10 Jun 2020 20:38:27 -0600
  4. Subject: Remove "throw" specifications
  5. diff --git a/lib/srchilite/fileutil.cc b/lib/srchilite/fileutil.cc
  6. index 59a6d64..963178c 100644
  7. --- a/lib/srchilite/fileutil.cc
  8. +++ b/lib/srchilite/fileutil.cc
  9. @@ -48,7 +48,7 @@ void set_file_util_verbose(bool b) {
  10. // FIXME avoid using a global variable
  11. std::string start_path;
  12. -string readFile(const string &fileName) throw (IOException) {
  13. +string readFile(const string &fileName) {
  14. ifstream file(fileName.c_str());
  15. if (!file.is_open()) {
  16. diff --git a/lib/srchilite/fileutil.h b/lib/srchilite/fileutil.h
  17. index 7335a9b..042eb56 100644
  18. --- a/lib/srchilite/fileutil.h
  19. +++ b/lib/srchilite/fileutil.h
  20. @@ -27,7 +27,7 @@ extern std::string start_path;
  21. * @return the contents of the file
  22. * @throw IOException
  23. */
  24. -string readFile(const string &fileName) throw (IOException);
  25. +string readFile(const string &fileName);
  26. //char *read_file(const string &fileName);
  27. --
  28. cgit v1.2.1