Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 1996 10:48:09 -0700 (PDT)
From:      Bruce Evans <bde>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/i386/include cpufunc.h
Message-ID:  <199609241748.KAA15318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

bde         96/09/24 10:48:08

  Modified:    sys/i386/include  cpufunc.h
  Log:
  Fixed a few hundred warnings (2400 in LINT) for signed vs unsigned
  comparisons in the inb() and outb() macros.  I decided that int args
  are OK here.  Any type that can hold a u_int16_t without overflow
  is correct, and 32-bit types are optimal.
  
  Introduced a few tens of warnings (100 in LINT) for use of pessimized
  (short) types for the port arg.  Only a few drivers are affected by
  this.  u_short pessimizations aren't detected.
  
  Added `__extension__' before the statement-expression in inb() so
  that it can be compiled without warnings by gcc -pedantic.
  
  Revision  Changes    Path
  1.56      +13 -6     src/sys/i386/include/cpufunc.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609241748.KAA15318>