[PATCH 0/3] warn on empty expressions

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

 



Sparse silently accepts empty assignments and empty initializers.
This series makes them an error.

Luc Van Oostenryck (3):
  add testcase for incorrect empty expressions
  warn on empty assignments
  warn on empty initializations

 expression.c                   |  6 +++++-
 parse.c                        |  5 ++++-
 validation/bad-assignment.c    |  1 +
 validation/empty-assign.c      | 13 +++++++++++++
 validation/empty-initializer.c |  9 +++++++++
 5 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 validation/empty-assign.c
 create mode 100644 validation/empty-initializer.c


base-commit: c9676a3b0349a1053c673243af52a2ef1b272bd7
-- 
2.27.0




[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