Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Peter Scully" <pscully@towertechnology.com.au>
Subject: DEC alpha compiler warnings
Date: Wed, 21 Feb 2001 14:34:19 +1100	[thread overview]
Message-ID: <3a93355f@dnews.tpgi.com.au> (raw)

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




             reply	other threads:[~2001-02-21  3:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-21  3:34 Peter Scully [this message]
2001-02-21 18:31 ` DEC alpha compiler warnings Jeff Sullivan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox