Patchwork Indentation change to fix build with latest GCC

login
register
mail settings
Submitter Steve Ellcey
Date Dec. 11, 2015, 4:58 p.m.
Message ID <0a24798f-042e-4b53-86e2-68d062c9adbf@BAMAIL02.ba.imgtec.org>
Download mbox | patch
Permalink /patch/9983/
State New
Headers show

Comments

Steve Ellcey - Dec. 11, 2015, 4:58 p.m.
GCC has added the -Wmisleading-indentation warning to -Wall and that
is breaking the GLIBC build when using the latest GCC.  Here is the
first failure I ran into.  It looks like the indentation is wrong so
I am going to check this in as obvious.  There will be more to follow
and if they also look like obvious indentation issues I will check
those in as well (and send email to the list describing the patches
as I do so).

Let me know if anyone has a problem with these checkins.

Steve Ellcey
sellcey@imgtec.com


2015-12-11  Steve Ellcey  <sellcey@imgtec.com>

 	* stdlib/strtol_l.c (__strtol_l): Fix indentation.

Patch

diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
index 392b31a..1efa193 100644
--- a/stdlib/strtol_l.c
+++ b/stdlib/strtol_l.c
@@ -351,8 +351,8 @@  INTERNAL (__strtol_l) (const STRING_TYPE *nptr, STRING_TYPE **endptr,
 		&& (wchar_t) c != thousands
 # else
 		&& ({ for (cnt = 0; cnt < thousands_len; ++cnt)
-		      if (thousands[cnt] != end[cnt])
-			break;
+			if (thousands[cnt] != end[cnt])
+			  break;
 		      cnt < thousands_len; })
 # endif
 		&& (!ISALPHA (c)