aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorRohit Vaswani <rvaswani@codeaurora.org>2012-02-02 16:01:39 -0800
committerStephen Boyd <sboyd@codeaurora.org>2013-07-08 06:59:40 -0700
commiteba69fa3f6ed3cc3bc34b1c971e9bb02098d7dbc (patch)
treefc2372f8cae39d82e46af353bd3060633bade846 /scripts/gcc-wrapper.py
parentf90b0188fe60062f326fccdfcda8605c7184b58a (diff)
scripts: gcc-wrapper: Add exceptions for failures with gcc-4.6.3
Compiling the kernel with gcc-4.6.3 generates two new forbidden warnings. Adding them to the allowed warnings list. Warning 1: kernel/arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] Warning 2: kernel/net/sched/sch_generic.c:678:2: warning: the comparison will always evaluate as 'true' for the address of 'noop_qdisc' will never be NULL [-Waddress] Change-Id: Ib559420337ac4c2d25b55eb80e8da3c2221b2f75 Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> (cherry picked from commit 116bcf08bd2c078e809a2d1e53fe901cf6f65502) Conflicts: scripts/gcc-wrapper.py
Diffstat (limited to 'scripts/gcc-wrapper.py')
-rwxr-xr-xscripts/gcc-wrapper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py
index 3ef485742a8..75a5046e3cc 100755
--- a/scripts/gcc-wrapper.py
+++ b/scripts/gcc-wrapper.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (c) 2011, The Linux Foundation. All rights reserved.
+# Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -40,6 +40,7 @@ import subprocess
# force LANG to be set to en_US.UTF-8 to get consistent warnings.
allowed_warnings = set([
+ "alignment.c:298",
"alignment.c:720",
"async.c:122",
"async.c:270",
@@ -58,7 +59,8 @@ allowed_warnings = set([
"msm_sdcc.c:128",
"nf_conntrack_netlink.c:790",
"nf_nat_standalone.c:118",
- "return_address.c:61",
+ "return_address.c:62",
+ "sch_generic.c:678",
"soc-core.c:1719",
"xt_log.h:50",
])