emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warnings for regex.c


From: Stefan Monnier
Subject: Re: compiler warnings for regex.c
Date: Thu, 26 Oct 2000 09:59:51 -0400

> With the change for regex.c on 2000-10-25, I get these
> warnings on Solaris 2.6 for SPARC.
> 
> gcc -c -DHAVE_CONFIG_H    -I. -I../src -I/project/mule/fsf-emacs/lib-src 
> -I/project/mule/fsf-emacs/lib-src/../src  -g -O2  -DCONFIG_BROKETS 
> -DINHIBIT_STRING_HEADER /project/mule/fsf-emacs/lib-src/../src/regex.c
> /project/mule/fsf-emacs/lib-src/../src/regex.c: In function 
> `re_match_2_internal':
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5280: warning: initialization 
> discards qualifiers from pointer target type
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5281: warning: initialization 
> discards qualifiers from pointer target type
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5332: warning: initialization 
> discards qualifiers from pointer target type
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5351: warning: initialization 
> discards qualifiers from pointer target type
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5368: warning: assignment 
> discards qualifiers from pointer target type
> /project/mule/fsf-emacs/lib-src/../src/regex.c:5584: warning: initialization 
> discards qualifiers from pointer target type
> 
> Are they harmless?

No, they are not, which is why they're there.
They mean that re_match is not reentrant.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]