File: octave5.patch

package info (click to toggle)
octave-level-set 0.3.1~git.2019.04.13-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: cpp: 1,840; makefile: 34; sh: 20
file content (96 lines) | stat: -rw-r--r-- 2,590 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Description: Fix FTBFS against Octave 5
 mkoctfile now passes -Werror=format-security, so we explicitly set the format
 string in calls to error().
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?58842
Last-Update: 2019-10-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/internal_mesh.cpp
+++ b/src/internal_mesh.cpp
@@ -519,7 +519,7 @@ DEFUN_DLD (__levelset_internal_mesh, arg
     }
   catch (const std::runtime_error& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/geomBoundary.cpp
+++ b/src/geomBoundary.cpp
@@ -370,7 +370,7 @@ DEFUN_DLD (__levelset_geomBoundary, args
     }
   catch (const std::runtime_error& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/geomElements.cpp
+++ b/src/geomElements.cpp
@@ -124,7 +124,7 @@ DEFUN_DLD (__levelset_geomElements, args
     }
   catch (const std::runtime_error& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/geomGamma.cpp
+++ b/src/geomGamma.cpp
@@ -372,7 +372,7 @@ DEFUN_DLD (__levelset_geomGamma, args, n
     }
   catch (const std::runtime_error& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/internal_fastmarching.cpp
+++ b/src/internal_fastmarching.cpp
@@ -125,7 +125,7 @@ DEFUN_DLD (__levelset_internal_fastmarch
     }
   catch (const std::exception& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/internal_init_narrowband.cpp
+++ b/src/internal_init_narrowband.cpp
@@ -139,7 +139,7 @@ DEFUN_DLD (__levelset_internal_init_narr
     }
   catch (const std::exception& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/nbFromGeom.cpp
+++ b/src/nbFromGeom.cpp
@@ -160,7 +160,7 @@ DEFUN_DLD (__levelset_nbFromGeom, args,
     }
   catch (const std::runtime_error& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }
--- a/src/upwindGrad.cpp
+++ b/src/upwindGrad.cpp
@@ -146,7 +146,7 @@ DEFUN_DLD (__levelset_upwindGrad, args,
     }
   catch (const std::exception& exc)
     {
-      error (exc.what ());
+      error ("%s", exc.what ());
       return octave_value_list ();
     }
 }