From 88bf3e710f30200edf1ed060b68d91cd1567ea23 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 4 Jun 2021 11:03:15 -0400 Subject: [PATCH] Update Cppcheck exclusions. --- .cppcheck | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.cppcheck b/.cppcheck index 069b8fe..381db28 100644 --- a/.cppcheck +++ b/.cppcheck @@ -1,29 +1,20 @@ -// Cppcheck bug: does not validate loop constraints properly... -arrayIndexOutOfBounds:printer-driver.c - // Bad CERT recommendation: C memory layout not determined by variable locations cert-API01-C +// Cppcheck doesn't know enough about variables to know whether they are +// uninitialized... +uninitvar + // Don't report non-const casts. Inline suppression comments are not working, // otherwise we'd be more selective... -cert-EXP05-C:device.c -cert-EXP05-C:device-network.c -cert-EXP05-C:device-usb.c -cert-EXP05-C:link.c -cert-EXP05-C:mainloop-subcommands.c -cert-EXP05-C:resource.c -cert-EXP05-C:system-webif.c -cert-EXP05-C:util.c +cert-EXP05-C // Not handling "(unsigned)~CONSTANT" properly... cert-INT31-c // fopen_s is NOT supported on POSIX platforms and DOES NOT APPLY for reading // of files! -cert-MSC24-C:job-filter.c - -// char something[###] = "constant" should not result in an error! -cert-STR05-C:system-webif.c +cert-MSC24-C // Not sure why this is a thing... preprocessorErrorDirective