]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
mce-intel-p4-p6: prevent build errors with -Werror=format-security v0.6.0
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 14 Oct 2017 10:26:30 +0000 (07:26 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 14 Oct 2017 10:28:46 +0000 (07:28 -0300)
commite62b3a8dc851da2c238ef83ddfec93cf42868aae
tree274c146e9cbe3040339ae00e43b67b5c5dcd2412
parent7deef57726d92c8575714be6e9fab100b1edb3bb
mce-intel-p4-p6: prevent build errors with -Werror=format-security

On Fedora, -Werror=format-security is now used on packages, with
causes the following build error:

mce-intel-p4-p6.c: In function 'p4_decode_model':
mce-intel-p4-p6.c:130:4: error: format not a string literal and no format arguments [-Werror=format-security]
    mce_snprintf(e->error_msg, p4_model[i].str);
    ^~~~~~~~~~~~
cc1: some warnings being treated as errors

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
mce-intel-p4-p6.c