icoutils/0001-wrestool-Fix-misleading-indentation.patch
Richard W.M. Jones 86a1ed311e Add a series of upstream patches to enable compiler warnings and
fix multiple issues.

Revert one of the checks which breaks processing of PE binaries.

Removed the 'Group' line, not needed with modern Fedora/RPM.
2017-03-10 12:18:04 +00:00

40 lines
1.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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