[PATCH 0/3] fix enum type - finalize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the finalization of the previous series fixing
or improving the typing of enums.

These first two patches give a much better compatibility
with GCC. This compatibility is not a goal but otherwise,
sparse gives warnings, sometimes a lot of warnings, on
perfectly valid kernel code. These warnings have no values,
doesn't show any kind of possible problems, but are are only
the consequence of different choices regarding the enum types.

The last patch only change an error message to something
explaining better the nature of the problem.


This series is available for revew & testing in the Git repository at:
  git://github.com/lucvoo/sparse-dev.git fix-enum-type

----------------------------------------------------------------
Luc Van Oostenryck (3):
      enum: keep enumerators as int if they fit
      enum: default to unsigned
      enum: more specific error message for empty enum

 parse.c                       | 51 +++++++++++++++++++++++++++++++++++++------
 validation/builtin-overflow.c |  2 +-
 validation/enum-invalid.c     |  2 +-
 validation/enum-mismatch.c    |  4 ++--
 validation/enum-sign-gcc.c    |  1 -
 5 files changed, 48 insertions(+), 12 deletions(-)



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux