This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/7755: Please make -Wno-deprecated do just that
- From: "H. Peter Anvin" <hpa at zytor dot com>
- To: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hpa at zytor dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 08 Jan 2003 10:27:29 -0800
- Subject: Re: c/7755: Please make -Wno-deprecated do just that
- Organization: Zytor Communications
- References: <20030108021719.22609.qmail@sources.redhat.com>
bangerth@dealii.org wrote:
> Synopsis: Please make -Wno-deprecated do just that
>
> State-Changed-From-To: open->feedback
> State-Changed-By: bangerth
> State-Changed-When: Tue Jan 7 18:17:18 2003
> State-Changed-Why:
> Thanks for your report (and how unfortunate that nobody seems)
> to have looked at it so far...). Do you have a small testcase
> that shows the problem? Please send it to us so that we can
> easily reproduce the problem.
>
Attached is a very simple testcase, which demonstrates the problem quite
well.
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("This is " __FUNCTION__);
return 0;
}
: neocesium 109 ; cat /etc/redhat-release
Red Hat Linux release 8.0.92 (Phoebe)
: neocesium 110 ; rpm -q gcc
gcc-3.2.1-2
: neocesium 111 ; gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)
: neocesium 112 ; gcc -Wall -Wno-deprecated -O -g -o function function.c
function.c: In function `main':
function.c:5: warning: concatenation of string literals with __FUNCTION__ is deprecated