門之園です。
gcc2.95を使用していて、gcc2.96に移行しようとしているのですが、
コンパイルオプションで「-Wall」とした時の、Warningが異なります。
- testプログラム(test.c) ------------------
#include <stdio.h>
#define AAA 0x00
#define AAA 0x01
int main( void )
{
int a;
a = AAA;
printf( "Test Program[%d].\n", a );
return 0;
}
--------------------------------------------
>gcc -Wall test.c
このプログラムを、コンパイルした際にgcc-2.95では、
test.c:4: warning: `AAA' redefined
test.c:3: warning: this is the location of the previous definition
と出るのですが、gcc-2.96では何も出ません。
何か情報がありましたら、御教示下さい。
以上、宜しくお願いします。
-------------------------------------------------
株式会社 ステップワン
技術部 システム開発事業部
門之園 真也
Tel : 078-271-8530, Fax : 078-271-8531
HP : http://www.stepone.co.jp
E-mail : kadono _at_ stepone.co.jp
Follow-Ups:
- [linux-users:98187] Re: gcc2.96のwarningについてTOYAMA Shin-ichi
- [linux-users:98188] Re: gcc2.96のwarningについてT.SHIOZAKI
- Prev by Subject: [linux-users:98184] Re: [Q] apt-get & rpm
- Next by Subject: [linux-users:98186] Re: [Q] apt-get & rpm
- Previous by thread: [linux-users:98190] Re: [Q] apt-get & rpm
- Next by thread: [linux-users:98187] Re: gcc2.96のwarningについて
- Indexes:[Main][Thread]