[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1397795756-23283-1-git-send-email-andi@firstfloor.org>
Date: Fri, 18 Apr 2014 06:35:56 +0200
From: Andi Kleen <andi@...stfloor.org>
To: mmarek@...e.cz
Cc: hpa@...or.com, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>,
Viresh Kumar <viresh.kumar@...aro.org>
Subject: [PATCH] Kbuild, lto: Avoid reported warning with strtoul
From: Andi Kleen <ak@...ux.intel.com>
Apparently someone's C library declares strtoul with warn_unused_result.
Cast to void to avoid the warning. Error handling is not useful here.
Cc: Viresh Kumar <viresh.kumar@...aro.org>
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
---
scripts/mod/modpost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 0663556..b9cf439 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1707,7 +1707,7 @@ static char *remove_dot(char *s)
int n = strcspn(s, ".");
if (n > 0 && s[n] != 0) {
- strtoul(s + n + 1, &end, 10);
+ (void)strtoul(s + n + 1, &end, 10);
if (end > s + n + 1 && (*end == '.' || *end == 0))
s[n] = 0;
}
--
1.8.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists