linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] warn on empty expressions
@ 2020-07-14  0:00 Luc Van Oostenryck
  2020-07-14  0:00 ` [PATCH 1/3] add testcase for incorrect " Luc Van Oostenryck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luc Van Oostenryck @ 2020-07-14  0:00 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck

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


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

end of thread, other threads:[~2020-07-14  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14  0:00 [PATCH 0/3] warn on empty expressions Luc Van Oostenryck
2020-07-14  0:00 ` [PATCH 1/3] add testcase for incorrect " Luc Van Oostenryck
2020-07-14  0:00 ` [PATCH 2/3] warn on empty assignments Luc Van Oostenryck
2020-07-14  0:00 ` [PATCH 3/3] warn on empty initializations Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).