Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC alpha compiler warnings
@ 2001-02-21  3:34 Peter Scully
  2001-02-21 18:31 ` Jeff Sullivan
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Scully @ 2001-02-21  3:34 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-21 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-21  3:34 DEC alpha compiler warnings Peter Scully
2001-02-21 18:31 ` Jeff Sullivan

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