Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by Andrew Klossner
Fri, 11 Aug 1989 22:44
compiler warnings in src/regex.c
Author: Andrew Klossner
Date: Fri, 11 Aug 1989 22:44
Date: Fri, 11 Aug 1989 22:44
50 lines
2044 bytes
2044 bytes
Compiling src/regex.c on a Tektronix 88k workstation results in these
warnings:
regex.c: In function re_search_2:
regex.c:1069: warning: argument passing between incompatible pointer types
regex.c:1069: warning: argument passing between incompatible pointer types
regex.c: In function re_match:
regex.c:1096: warning: argument passing between incompatible pointer types
The problem is that arguments of type (char *) are being passed to
parameters of type (unsigned char *). A brute force fix is enclosed.
-=- Andrew Klossner (uunet!tektronix!frip.WV.TEK!andrew) [UUCP]
(andrew%frip.wv.tek.com@relay.cs.net) [ARPA]
*** ORIG-libg++-1.35.1/src/regex.c Thu Mar 30 02:59:54 1989
--- libg++-88k/src/regex.c Fri Aug 11 15:41:20 1989
***************
*** 1066,1072 ****
&& fastmap && pbufp->can_be_null == 0)
return -1;
! val = re_match_2 (pbufp, string1, size1, string2, size2, startpos, regs, mstop);
if (0 <= val)
{
if (val == -2)
--- 1066,1072 ----
&& fastmap && pbufp->can_be_null == 0)
return -1;
! val = re_match_2 (pbufp, (unsigned char *)string1, size1, (unsigned char *)string2, size2, startpos, regs, mstop);
if (0 <= val)
{
if (val == -2)
***************
*** 1093,1099 ****
int size, pos;
struct re_registers *regs;
{
! return re_match_2 (pbufp, 0, 0, string, size, pos, regs, size);
}
#endif /* emacs */
--- 1093,1099 ----
int size, pos;
struct re_registers *regs;
{
! return re_match_2 (pbufp, 0, 0, (unsigned char *)string, size, pos, regs, size);
}
#endif /* emacs */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads