Parent: b406f28746e747ee7d739970a00e3aa0963b3e88
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2019-05-13 20:23:28
Tree: 0ffaaae5caa637a729603445d39b5c2697b8ae36
tools/csr_usb: Fix compilation failure 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); ^
Diffstat
| M | tools/csr_usb.c | | | 16 | ++++++++++- - - - - - |
1 files changed, 10 insertions(+), 6 deletions(-)