svn commit: r358465 - head/sys/arm64/arm64

Dimitry Andric dim at FreeBSD.org
Sat Feb 29 14:11:28 UTC 2020


Author: dim
Date: Sat Feb 29 14:11:27 2020
New Revision: 358465
URL: https://svnweb.freebsd.org/changeset/base/358465

Log:
  Fix the following -Werror warning from clang 10.0.0:
  
  sys/arm64/arm64/identcpu.c:1170:5: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
                                  break;
                                  ^
  sys/arm64/arm64/identcpu.c:1168:4: note: previous statement is here
                          if (fv[j].desc[0] != '\0')
                          ^
  
  The break should be after the if statement, indented one level less.
  
  MFC after:	3 days
  Differential Revision: https://reviews.freebsd.org/D23871

Modified:
  head/sys/arm64/arm64/identcpu.c

Modified: head/sys/arm64/arm64/identcpu.c
==============================================================================
--- head/sys/arm64/arm64/identcpu.c	Sat Feb 29 13:25:38 2020	(r358464)
+++ head/sys/arm64/arm64/identcpu.c	Sat Feb 29 14:11:27 2020	(r358465)
@@ -1167,7 +1167,7 @@ print_id_fields(struct sbuf *sb, uint64_t reg, void *a
 
 			if (fv[j].desc[0] != '\0')
 				sbuf_printf(sb, "%s%s", SEP_STR, fv[j].desc);
-				break;
+			break;
 		}
 		if (fv[j].desc == NULL)
 			sbuf_printf(sb, "%sUnknown %s(%x)", SEP_STR,


More information about the svn-src-all mailing list