Bump cppcheck to v2.11
This fixes the following errors:- sesman/tools/authtest.c:64:14: error: syntax error [syntaxError] g_printf("xrdp auth module tester v" PACKAGE_VERSION "\n"); ^ sesman/tools/sesrun.c:165:14: error: syntax error [syntaxError] g_printf("xrdp session starter v" PACKAGE_VERSION "\n"); ^ vrplayer/decoder.h:35:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro] public slots: ^ vrplayer/playaudio.h:45:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro] public slots: ^ vrplayer/dlgabout.h:22:13: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro] private slots: ^ vrplayer/playvideo.h:49:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro] public slots: ^ Additionally, cppcheck now makes use of all available CPUs
This commit is contained in:
parent
27ea401e43
commit
7e514bf339
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -127,7 +127,7 @@ jobs:
|
||||
CC: gcc
|
||||
# This is required to use a version of cppcheck other than that
|
||||
# supplied with the operating system
|
||||
CPPCHECK_VER: "2.10"
|
||||
CPPCHECK_VER: "2.11"
|
||||
CPPCHECK_REPO: https://github.com/danmar/cppcheck.git
|
||||
steps:
|
||||
# Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit d8f126abc48a1b949a0be27b334099161c06f0fc
|
||||
Subproject commit c537401ac2fd5fa4671701f67367413feb51edff
|
@ -45,10 +45,16 @@ if [ -z "$CPPCHECK_FLAGS" ]; then
|
||||
CPPCHECK_FLAGS="--quiet --force --std=c11 --std=c++11 --inline-suppr \
|
||||
--enable=warning --error-exitcode=1"
|
||||
fi
|
||||
CPPCHECK_FLAGS="$CPPCHECK_FLAGS -D__cppcheck__"
|
||||
|
||||
# Any options/directories specified?
|
||||
if [ $# -eq 0 ]; then
|
||||
set -- -j 2 .
|
||||
if [ -f /proc/cpuinfo ]; then
|
||||
cpus=$(grep '^processor' /proc/cpuinfo | wc -l)
|
||||
else
|
||||
cpus=2
|
||||
fi
|
||||
set -- -j $cpus .
|
||||
fi
|
||||
|
||||
# Display the cppcheck version and command for debugging
|
||||
|
@ -42,6 +42,11 @@
|
||||
|
||||
#include "libscp_connection.h"
|
||||
|
||||
// cppcheck doesn't always set this macro to something in double-quotes
|
||||
#if defined(__cppcheck__)
|
||||
#undef PACKAGE_VERSION
|
||||
#endif
|
||||
|
||||
#if !defined(PACKAGE_VERSION)
|
||||
#define PACKAGE_VERSION "???"
|
||||
#endif
|
||||
|
@ -42,7 +42,7 @@ int
|
||||
auth_userpass(const char *user, const char *pass, int *errorcode)
|
||||
{
|
||||
pam_handle_t *pamh;
|
||||
pam_userpass_t userpass;
|
||||
pam_userpass_t userpass = NULL;
|
||||
struct pam_conv conv = {pam_userpass_conv, &userpass};
|
||||
const void *template1;
|
||||
int status;
|
||||
|
@ -32,7 +32,7 @@ class Decoder : public QObject
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
public slots: // cppcheck-suppress unknownMacro
|
||||
void onGeometryChanged(QRect *geometry);
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@ class DlgAbout : public QDialog
|
||||
private:
|
||||
Ui::DlgAbout *ui;
|
||||
|
||||
private slots:
|
||||
private slots: // cppcheck-suppress unknownMacro
|
||||
void onOk();
|
||||
};
|
||||
|
||||
|
@ -42,7 +42,7 @@ class PlayAudio : public QObject
|
||||
|
||||
void setVcrOp(int op);
|
||||
|
||||
public slots:
|
||||
public slots: // cppcheck-suppress unknownMacro
|
||||
void play();
|
||||
|
||||
private:
|
||||
|
@ -46,7 +46,7 @@ class PlayVideo : public QObject
|
||||
//void setVcrOp(int op);
|
||||
//void onMediaRestarted();
|
||||
|
||||
public slots:
|
||||
public slots: // cppcheck-suppress unknownMacro
|
||||
void play();
|
||||
|
||||
//signals:
|
||||
|
Loading…
Reference in New Issue
Block a user