Article View: gnu.gcc.help
Article #49458controlling gcc warnings
From: Shyamal Prasad
Date: Sat, 22 Jan 1994 21:55
Date: Sat, 22 Jan 1994 21:55
38 lines
2075 bytes
2075 bytes
HI, When I run gcc on some source here I get this error: /usr/include/obj_ext.h:5: warning: useless keyword or type name in empty declaration /usr/include/obj_ext.h:6: warning: useless keyword or type name in empty declaration /usr/include/obj_ext.h:7: warning: useless keyword or type name in empty declaration /usr/include/obj_ext.h:8: warning: useless keyword or type name in empty declaration /usr/include/obj_ext.h:9: warning: useless keyword or type name in empty declaration and the corresponding source is extern struct obj; extern struct obj; extern struct obj_type; extern struct obj_type; extern struct obj_list; extern struct obj_list; My question is: how do I turn this warning off while keeping other warnings on?? I get at least 25 such warnings from the include file in question (a part of extended COFF support for a DEC Station/MIPS machine running ULTRIX), which of course screws me over, and I have to do gcc -w. I hate working with all the warnings turned off, and its impossible to run with warnings enabled because I am sure to get at least a 100 when I do a make. I want to use -Wall, but to be able to turn off this *one* warning. I looked in the man/info pages, and could not find a clue. I would appreciate any help at all. I am using gcc v.2.3.3. Shyamal -- Shyamal Prasad, Department of Computer Science Southern Methodist University, Dallas TX 75275, USA
Technical Details
Message-ID:
<1994Jan22.215515.19378@seas.smu.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uunet!seas.smu.edu!shyamalShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,60bcc2a4e25648c7,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-22 20:45:49 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uunet!seas.smu.edu!shyamal From: shyamal@seas.smu.edu (Shyamal Prasad) Subject: controlling gcc warnings Message-ID: <1994Jan22.215515.19378@seas.smu.edu> Sender: news@seas.smu.edu (USENET News System) Nntp-Posting-Host: quick_f.seas.smu.edu Organization: SMU - School of Engineering & Applied Science - Dallas Date: Sat, 22 Jan 1994 21:55:15 GMT Lines: 38