[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
const qualifier violation in regex.c:re_comp()
From: |
Martin Neitzel |
Subject: |
const qualifier violation in regex.c:re_comp() |
Date: |
Fri, 1 Oct 2004 19:51:00 +0200 (CEST) |
>Submitter-Id: net
>Originator: Martin Neitzel
>Organization: Gaertner Datensysteme
>Confidential: no
>Synopsis: const qualifier violation in regex.c:re_comp()
>Severity: non-critical
>Priority: low
>Category: cvs
>Class: sw-bug
>Release: 1.12.9.1
>Environment:
IRIX sco 5.3 11091810 IP12 mips
(Probably any ANSI C build environment.)
>Description:
lib/regex.c has a botched const char* (un)qualification.
>How-To-Repeat:
Compile with all warnings taken seriously.
>Fix:
Index: lib/regex.c
===================================================================
RCS file: /cvs/ccvs/lib/regex.c,v
retrieving revision 1.14
diff -u -r1.14 regex.c
--- lib/regex.c 8 Apr 2004 01:35:59 -0000 1.14
+++ lib/regex.c 1 Oct 2004 14:06:46 -0000
@@ -7912,7 +7912,7 @@
if (!s)
{
if (!re_comp_buf.buffer)
- return gettext ("No previous regular expression");
+ return gettext_noop ("No previous regular expression");
return 0;
}
- const qualifier violation in regex.c:re_comp(),
Martin Neitzel <=
- const qualifier violation in regex.c:re_comp(), Mark D. Baushke, 2004/10/04
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Martin Neitzel, 2004/10/11
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Derek Robert Price, 2004/10/14
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Bruno Haible, 2004/10/15
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Derek Robert Price, 2004/10/15