Blob Blame History Raw
From b44434e2224b8cd3ee76dcad641eb03cc6c9cbdd Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 9 Mar 2017 12:10:28 +0000
Subject: [PATCH 01/26] wrestool: Fix misleading indentation.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In GCC 7:

main.c: In function ‘main’:
main.c:243:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if (c == EOF)
  ^~
main.c:246:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      switch (c) {
      ^~~~~~

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
 wrestool/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wrestool/main.c b/wrestool/main.c
index 0e3f286..a5c6688 100644
--- a/wrestool/main.c
+++ b/wrestool/main.c
@@ -243,7 +243,7 @@ main (int argc, char **argv)
 	if (c == EOF)
 	    break;
 
-	    switch (c) {
+	switch (c) {
 	    case 't': arg_type = optarg; break;
 	    case 'n': arg_name = optarg; break;
 	    case 'L': arg_language = optarg; break;
-- 
2.10.2