All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] pull: OCLint static code analysis changes
@ 2016-07-17 13:00 Sami Kerola
  2016-07-17 13:00 ` [PATCH 01/13] misc: simplify if clauses [oclint] Sami Kerola
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Sami Kerola @ 2016-07-17 13:00 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Hello,

Just while back I heard first time a tool called OCLint[1] and I decided to
give it a try.  The OCLint seems to print a lot of warnings that do not
appear to that important to address.  It seems the tools is in it best to
find where code is unnecessarily complicated - and the changes are mostly
about improving such segments.  IMHO only the shadowing and libblkid
debugging fixes in this pull request are a little bit more important.

[1] http://oclint.org/

----------------------------------------------------------------
The following changes since commit b8fd5c055889edcefdd97afa2abb35b71e6fa369:
  tests: fix ttyutils test (2016-07-15 10:11:35 +0200)
are available in the git repository at:
  git://github.com/kerolasa/lelux-utiliteetit.git oclint
for you to fetch changes up to 5c5e25f2a96c458cd641fbf119c81813d27f1da3:
  libblkid: fix debugging macro [oclint] (2016-07-17 13:49:51 +0100)
----------------------------------------------------------------

Sami Kerola (13):
  misc: simplify if clauses [oclint]
  switch_root: simplify code and reduce indentation [oclint]
  libfdisk: collapse indentation [oclint]
  lslogins: simplify if clause and move definition and comments [oclint]
  libblkid: simplify if clause [oclint]
  logger: simplify if clause [oclint]
  syspriv: flip inverted logic [oclint]
  libmount, look: remove dead code [oclint]
  dmesg: drop core at impossible case in read_buffer() [oclint]
  misc: fix declarations shadowing variables in the global scope [oclint]
  setterm: fix declarations shadowing variables in the global scope [oclint]
  agetty: move unreachable code to pre-processor #else segment [oclint]
  libblkid: fix debugging macro [oclint]

 disk-utils/fsck.c              | 31 +++++++--------
 disk-utils/fsck.cramfs.c       | 11 ++----
 disk-utils/fsck.minix.c        |  7 ++--
 disk-utils/mkfs.cramfs.c       | 15 +++----
 disk-utils/mkfs.minix.c        |  8 +---
 lib/sysfs.c                    |  6 +--
 lib/timeutils.c                |  6 +--
 libblkid/src/probe.c           | 10 ++---
 libblkid/src/superblocks/zfs.c | 32 +++++++--------
 libfdisk/src/dos.c             | 26 ++++++-------
 libfdisk/src/sgi.c             |  5 +--
 libfdisk/src/sun.c             | 48 +++++++++++------------
 libmount/src/context_mount.c   |  1 -
 libmount/src/context_umount.c  |  1 -
 libmount/src/fs.c              |  9 ++---
 libmount/src/utils.c           |  6 +--
 login-utils/last.c             |  6 +--
 login-utils/lslogins.c         | 26 ++++++-------
 login-utils/sulogin.c          |  6 +--
 login-utils/utmpdump.c         |  5 +--
 login-utils/vipw.c             |  7 ++--
 misc-utils/cal.c               |  6 +--
 misc-utils/logger.c            | 62 ++++++++++++++---------------
 misc-utils/look.c              |  2 -
 misc-utils/mcookie.c           |  6 +--
 misc-utils/uuidd.c             |  5 +--
 sys-utils/dmesg.c              | 29 +++++++-------
 sys-utils/ipcrm.c              | 13 +++----
 sys-utils/lsipc.c              |  6 +--
 sys-utils/rtcwake.c            | 15 +++----
 sys-utils/setpriv.c            | 22 +++++------
 sys-utils/setsid.c             |  6 +--
 sys-utils/switch_root.c        | 29 +++++++-------
 term-utils/agetty.c            | 30 +++++++-------
 term-utils/setterm.c           | 88 +++++++++++++++++++++---------------------
 text-utils/hexdump-parse.c     | 15 +++----
 text-utils/tailf.c             |  8 ++--
 37 files changed, 274 insertions(+), 340 deletions(-)

-- 
2.9.0


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

end of thread, other threads:[~2016-08-02 13:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-17 13:00 [PATCH 00/13] pull: OCLint static code analysis changes Sami Kerola
2016-07-17 13:00 ` [PATCH 01/13] misc: simplify if clauses [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 02/13] switch_root: simplify code and reduce indentation [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 03/13] libfdisk: collapse " Sami Kerola
2016-07-19  8:48   ` Karel Zak
2016-07-21 20:20     ` Sami Kerola
2016-07-17 13:00 ` [PATCH 04/13] lslogins: simplify if clause and move definition and comments [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 05/13] libblkid: simplify if clause [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 06/13] logger: " Sami Kerola
2016-07-17 13:00 ` [PATCH 07/13] syspriv: flip inverted logic [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 08/13] libmount, look: remove dead code [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 09/13] dmesg: drop core at impossible case in read_buffer() [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 10/13] misc: fix declarations shadowing variables in the global scope [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 11/13] setterm: " Sami Kerola
2016-07-17 13:00 ` [PATCH 12/13] agetty: move unreachable code to pre-processor #else segment [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 13/13] libblkid: fix debugging macro [oclint] Sami Kerola
2016-08-02 13:44 ` [PATCH 00/13] pull: OCLint static code analysis changes Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.