From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1509631905.2869.58.camel@hadess.net> Subject: Re: [PATCH 1/2] tools/csr_usb: Fix compilation failure From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Date: Thu, 02 Nov 2017 15:11:45 +0100 In-Reply-To: <20171102140953.21684-1-hadess@hadess.net> References: <20171102140953.21684-1-hadess@hadess.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Thu, 2017-11-02 at 15:09 +0100, Bastien Nocera wrote: > GCC's "format-nonliteral" security check is enabled as an error in > recent versions of Fedora. Given the limited formats, pass a boolean > to switch between the 2 different formats. > > tools/csr_usb.c: In function 'read_value': > tools/csr_usb.c:82:2: error: format not a string literal, argument > types not checked [-Werror=format-nonliteral] > n = fscanf(file, format, &value); > ^ Sorry, those are re-send because of a command-line typo. They're still applicable though.