delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
Date: | Sun, 27 Jan 2002 10:56:04 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | djgpp-workers AT delorie DOT com |
Subject: | GCC 3.x and bcopy |
Message-ID: | <Pine.SUN.3.91.1020127105225.14549L-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Does the v2.03 refresh correct the problem with bcopy? Our prototype says it returns a `void *' (and bcopy's code indeed behaves like that), but GCC's built-in bcopy returns nothing. This causes warnings in any program that includes string.h and is compiled by GCC 3.x without -ansi. I'd like to avoid the flood of FAQs about this, if it's possible. The cure is simple: modify the prototype in string.h, and change bcopy.c to not return anything.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |