www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/03/12:34:25

Date: Sat, 03 Nov 2001 19:33:46 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <8582-Sat03Nov2001193344+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9
Subject: Built-in bzero
Reply-To: djgpp-workers AT delorie DOT com

While compiling the readline library in the latest GDB pretest, GCC
3.0.2 prints numerous warnings like this:

  gcc -c -DHAVE_CONFIG_H   -I. -I. -Id:/usr/djgpp/include -DRL_LIBRARY_VERSION='"4.1"' -g -O2 readline.c
  In file included from rldefs.h:53,
                   from readline.c:54:
  d:/usr/djgpp/include/string.h:53: warning: conflicting types for built-in function `bzero'

What prototype of bzero does GCC expect?  More generally, how can one
know what prototypes does GCC expect from functions it treats as
built-in?

Apart of using -fno-nonansi-builtins (which I don't want to do, since
older versions of GCC will probably barf on it), can I do something
in the GDB distribution to avoid this warning?  For example, are
there some -Wxxx flags I can avoid using to shut this warning up?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019