From 9f0f4a2c5495eec2d81a4381fb962fad93b2ddde Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 9 Sep 2014 20:05:27 -0700 Subject: Copious const cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes 1554 gcc warnings of "discards ‘const’ qualifier" Signed-off-by: Alan Coopersmith --- lisp/mathimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/mathimp.c') diff --git a/lisp/mathimp.c b/lisp/mathimp.c index 5f8bd4d..0433968 100644 --- a/lisp/mathimp.c +++ b/lisp/mathimp.c @@ -436,7 +436,7 @@ static INLINE int cmp_br_br(mpr*, mpr*); */ static n_real zero, one, two; -static char *fatal_error_strings[] = { +static const char *fatal_error_strings[] = { #define DIVIDE_BY_ZERO 0 "divide by zero", #define FLOATING_POINT_OVERFLOW 1 @@ -445,7 +445,7 @@ static char *fatal_error_strings[] = { "floating point exception" }; -static char *fatal_object_error_strings[] = { +static const char *fatal_object_error_strings[] = { #define NOT_A_NUMBER 0 "is not a number", #define NOT_A_REAL_NUMBER 1 -- cgit v1.2.3