bug-grep
[Top][All Lists]
Advanced

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

grep 2.5.4 c89 build failure


From: Matthew Woehlke
Subject: grep 2.5.4 c89 build failure
Date: Thu, 26 Mar 2009 12:16:00 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.21) Gecko/20090320 Fedora/2.0.0.21-1.fc10 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0

"search.c", line 169.27: 1506-280 (E) Function argument assignment between types "char*" and "const char*" is not allowed. "search.c", line 283.21: 1506-068 (S) Operation between types "void" and "void" is not allowed. "search.c", line 289.21: 1506-068 (S) Operation between types "void" and "void" is not allowed. "search.c", line 294.21: 1506-068 (S) Operation between types "void" and "void" is not allowed.

The 'return' from what is apparently a void function (further, trying to return a 'void') seems unnecessary. The other error is a case of discarding a const that is easily fixed with a cast.

--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
"We're all mad here. I'm mad. You're mad... You must be, or you wouldn't have come here." -- The Cheshire Cat (from Lewis Carroll's Alice in Wonderland)





reply via email to

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