X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Fri, 23 Jan 2004 14:46:38 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Esa A E Peuha Message-Id: <2719-Fri23Jan2004144638+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Esa A E Peuha on Fri, 23 Jan 2004 11:54:15 +0200 (EET)) Subject: Re: Patch for bsearch References: <200401201626 DOT i0KGQ7d8026812 AT envy DOT delorie DOT com> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Fri, 23 Jan 2004 11:54:15 +0200 (EET) > From: Esa A E Peuha > > > > "void" has no size, so you can't do pointer arithmetic with it. Any > > void* must be cast to a pointer to non-void to do pointer arithmetic. > > In GNU C, sizeof(void) == 1 and therefore arithmetic on void pointers > works just like on char pointers. Is there any reason not to use GNU > extensions in library sources? Only one: that some future version of GCC might flag these with warnings, and we use flags that make warnings to be treated as errors.