From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7419311ff07e2bde,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-20 19:44:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!europa.netcrusader.net!152.163.239.129!portc01.blue.aol.com!news.stealth.net!203.109.225.2.MISMATCH!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!nsw.nnrp.telstra.net!dnews.tpgi.com.au!tpg.com.au!203.58.23.118 From: "Peter Scully" Newsgroups: comp.sys.dec Subject: DEC alpha compiler warnings X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Original-NNTP-Posting-Host: 203.58.23.118 Message-ID: <3a93355f@dnews.tpgi.com.au> X-Original-Trace: 21 Feb 2001 14:26:23 +1100, 203.58.23.118 Date: Wed, 21 Feb 2001 14:34:19 +1100 NNTP-Posting-Host: 203.12.160.33 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 982726856 203.12.160.33 (Wed, 21 Feb 2001 14:40:56 EST) NNTP-Posting-Date: Wed, 21 Feb 2001 14:40:56 EST Organization: Customer of Telstra Big Pond Direct Xref: supernews.google.com comp.sys.dec:2924 Hi, I've just enabled the warnings on our DEC alpha (Tru64 4.0D) and (apart from our own warnings) found hundreds of warnings caused by some header files in /usr/include/io/cam. Here are a few typical ones (they are all caused by using "unsigned char" bit fields, which is not nice - they should be "int" or "unsigned int"): cc: Warning: /usr/include/io/cam/rzdisk.h, line 178: In the declaration of "perfdt", the bitfield type is not an int, signed int or unsigned int. u_char perfdt:5, /* Peripheral Device Type */ ----------------^ cc: Warning: /usr/include/io/cam/cdrom.h, line 201: In the declaration of "ps_lbamsf", the bitfield type is not an int, signed int or unsigned int. u_char ps_lbamsf : 1, /* Address format 0/1 = LBA/MSF */ ----------------^ cc: Warning: /usr/include/io/cam/scsi_all.h, line 83: In the declaration of "save", the bitfield type is not an int, signed int or unsigned int. u_char save :1, /* Save control bit */ ----------------^ cc: Warning: /usr/include/io/cam/scsi_special.h, line 106: In the declaration of "dt_inq_ansi", the bitfield type is not an int, signed int or unsigned int. u_char dt_inq_ansi : 4, /* The ANSI version supported. */ ----------------^ cc: Warning: /usr/include/io/cam/scsi_sequential.h, line 59: In the declaratioof "extend", the bitfield type is not an int, signed int or unsigned int. u_char extend :1, /* Erase from position to end (long) */ ----------------^ My question is simple: how can I stop these warnings, short of disabling the compiler's warning flag or rewriting DEC's own header files? Many thanks in advance, Fred Hagist