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

* Re: DEC alpha compiler warnings
  2001-02-21  3:34 DEC alpha compiler warnings Peter Scully
@ 2001-02-21 18:31 ` Jeff Sullivan
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Sullivan @ 2001-02-21 18:31 UTC (permalink / raw)


Newer DEC/Compaq C compilers have a feature that will suppress
disgnostics in system header files or other directories where
you can not easily make changes. See the -SD option in the cc(1)
man page.

If this feature is not yet available in your system compiler, you
can upgrade your compiler in Tru64 UNIX V4.0D and later using the
Developers' Toolkit Supplement. It is available on the web at:

  http://www.tru64unix.compaq.com/dtk/

All that is needed is an active Developers' Toolkit license in
oder to install/run it on your V4.0D or later machine. You may
also need a 'cc' driver patch for V4.0D or V4.0E. This is described
in the Installation Guide on the web.

You will find newer features and better optimization in the new
compiler. It will also default to -std (Relaxed ANSI) mode, which
may be a change for some V4.0x users.

If you need more info, let me know.

-Jeff


^ 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