From 116bcf08bd2c078e809a2d1e53fe901cf6f65502 Mon Sep 17 00:00:00 2001 From: Rohit Vaswani Date: Thu, 2 Feb 2012 16:01:39 -0800 Subject: [PATCH] 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 --- scripts/gcc-wrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py index cbe2eae7f43..65744e15540 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, Code Aurora Forum. All rights reserved. +# Copyright (c) 2011-2012, Code Aurora Forum. 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", @@ -59,6 +60,7 @@ allowed_warnings = set([ "nf_conntrack_netlink.c:790", "nf_nat_standalone.c:118", "return_address.c:62", + "sch_generic.c:678", "soc-core.c:1719", "xt_log.h:50", "vx6953.c:3124",