From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752763AbcAGSyL (ORCPT ); Thu, 7 Jan 2016 13:54:11 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33298 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbcAGSyJ (ORCPT ); Thu, 7 Jan 2016 13:54:09 -0500 Date: Thu, 7 Jan 2016 10:54:06 -0800 From: Brian Norris To: Michael Ellerman Cc: Anton Blanchard , Ian Munsie , Michael Neuling , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michal Marek Subject: Build failure: -Wno-unused-const-variable DNE on old GCC Message-ID: <20160107185406.GA65420@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I'm using a GCC 4.6.3 compiler for some compile tests, and I noticed that commit 2cd55c68c0a4 ("cxl: Fix build failure due to -Wunused-variable behaviour change") breaks my builds, because the -Wno-unused-const-variable doesn't exist on GCC 4.6.3. drivers/misc/cxl/base.c: At top level: cc1: error: unrecognized command line option "-Wno-unused-const-variable" [-Werror] Any thoughts on how to best fix this? I'd like not to have to scrounge up a new cross compiler just for build tests. Regards, Brian