Date: Thu, 13 Feb 2020 19:28:30 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357873 - head/sbin/sconfig Message-ID: <202002131928.01DJSUg4057499@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Feb 13 19:28:30 2020 New Revision: 357873 URL: https://svnweb.freebsd.org/changeset/base/357873 Log: Merge r357864 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in sconfig: sbin/sconfig/sconfig.c:909:5: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation] exit (-1); ^ sbin/sconfig/sconfig.c:907:6: note: previous statement is here } else ^ The intent was to group the exit() call with the previous fprintf() call. MFC after: 3 days Modified: head/sbin/sconfig/sconfig.c Directory Properties: head/ (props changed) Modified: head/sbin/sconfig/sconfig.c ============================================================================== --- head/sbin/sconfig/sconfig.c Thu Feb 13 19:25:49 2020 (r357872) +++ head/sbin/sconfig/sconfig.c Thu Feb 13 19:28:30 2020 (r357873) @@ -904,9 +904,10 @@ setup_chan (int fd, int argc, char **argv) } else if (strncasecmp ("rs449", argv[i]+5, 5) == 0) { port = 2; ioctl (fd, SERIAL_SETPORT, &port); - } else + } else { fprintf (stderr, "invalid port type\n"); exit (-1); + } #if 1 } else if (strcasecmp ("reset", argv[i]) == 0) { ioctl (fd, SERIAL_RESET, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002131928.01DJSUg4057499>