🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #13033

gcc warnings

#13033
From: Bart Vandewoestyne
Date: Tue, 04 Sep 2001 13:48
49 lines
2302 bytes
Ik zit met volgend stuk code:

/*
 * EISA Slave Interface Controller bit definitions
 */
#define SLAVE_BOARD_INFO struct slave_board_info
typedef SLAVE_BOARD_INFO {
  ulong   IOCS0;
  ulong   IOCS1;
  ulong   IOCS2;
  unchar  bctrl;
  uint comp0;
  uint comp1;
  uint comp2;
  uint comp3;
  uint mask0;
  uint mask1;
  uint mask2;
  uint mask3;
  unchar  Memode0;
  unchar  Memode1;
  unchar  IOmode0;   
  unchar  IOmode1;
  unchar  IOmode2;
  unchar  IOmode3;
  unchar  Int0;
  unchar  Int1;
  unchar  config;
  unchar  dipsw;
  unchar  dmacfg;
  unchar  fctrl;
  unchar id_byte1, id_byte2, id_byte3, id_byte4;
};

En dat genereert met gcc 2.95.4 blijkbaar volgende warning:

"warning: useless keyword or type name in empty declaration"

Waarom?  En hoe krijg ik die weg?

Greetzzz,
mc303

-- 
Ing. Bart Vandewoestyne			 Bart.Vandewoestyne@pandora.be
Hugo Verrieststraat 48			       GSM: +32 (0)478 397 697
B-8550 Zwevegem			 http://users.pandora.be/vandewoestyne
----------------------------------------------------------------------
"Any fool can know, the point is to understand." - Albert Einstein
Technical Details
Message-ID: <3B94DBAD.BC826442@pandora.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,5d7bbe4db29153be,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2001-09-04 06:51:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mail
From: Bart Vandewoestyne <Bart.Vandewoestyne@pandora.be>
Newsgroups: be.comp.programming
Subject: gcc warnings
Date: Tue, 04 Sep 2001 15:48:30 +0200
Organization: MyHome
Lines: 49
Message-ID: <3B94DBAD.BC826442@pandora.be>
NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: naxos.belnet.be 999611485 20106 134.58.127.12 (4 Sep 2001 13:51:25 GMT)
X-Complaints-To: abuse@belnet.be
NNTP-Posting-Date: Tue, 4 Sep 2001 13:51:25 +0000 (UTC)
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9 i686)
X-Accept-Language: nl-BE, nl, en, de
Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown@kn-10-0-54-080.kotnet.kuleuven.ac.be
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)