This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/7755: Please make -Wno-deprecated do just that


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]