OCaml 4.14.0 rebuild
[arch-packages.git] / source-highlight / trunk / source-highlight-gcc11.patch
blob1e5b0dd8df407a352c59f2339b66b0d27665182f
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
6 diff --git a/lib/srchilite/fileutil.cc b/lib/srchilite/fileutil.cc
7 index 59a6d64..963178c 100644
8 --- a/lib/srchilite/fileutil.cc
9 +++ b/lib/srchilite/fileutil.cc
10 @@ -48,7 +48,7 @@ void set_file_util_verbose(bool b) {
11 // FIXME avoid using a global variable
12 std::string start_path;
14 -string readFile(const string &fileName) throw (IOException) {
15 +string readFile(const string &fileName) {
16 ifstream file(fileName.c_str());
18 if (!file.is_open()) {
19 diff --git a/lib/srchilite/fileutil.h b/lib/srchilite/fileutil.h
20 index 7335a9b..042eb56 100644
21 --- a/lib/srchilite/fileutil.h
22 +++ b/lib/srchilite/fileutil.h
23 @@ -27,7 +27,7 @@ extern std::string start_path;
24 * @return the contents of the file
25 * @throw IOException
27 -string readFile(const string &fileName) throw (IOException);
28 +string readFile(const string &fileName);
30 //char *read_file(const string &fileName);
32 --
33 cgit v1.2.1