Skip to content

Commit 1d68383

Browse files
committed
Fix cppcheck on macros
1 parent b2d03da commit 1d68383

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/static-code-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
name: Cppcheck
88
runs-on: ubuntu-latest
99
env:
10-
extra-args: -i src/modules/glaxnimate/glaxnimate/ -DMLT_POSITION_FMT -DVERSION
10+
extra-args: -i src/modules/glaxnimate/glaxnimate/ -DVERSION=cppcheck --include=src/framework/mlt_log.h --include=src/framework/mlt_types.h
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Install Cppcheck
1414
run: sudo apt-get -qq -y install cppcheck
1515
- name: Run Cppcheck
16-
run: cppcheck src/ --library=qt --error-exitcode=1 --template="::{severity} file={file},line={line},col={column}::{message}" ${{ env.extra-args }}
16+
run: cppcheck src/ --inline-suppr --library=qt --error-exitcode=1 --template="::{severity} file={file},line={line},col={column}::{message}" ${{ env.extra-args }}

src/modules/avformat/producer_avformat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,7 @@ static int seek_video(producer_avformat self,
14721472
timestamp -= 2 / av_q2d(self->video_time_base);
14731473
if (timestamp < 0)
14741474
timestamp = 0;
1475+
// cppcheck-suppress syntaxError
14751476
mlt_log_debug(MLT_PRODUCER_SERVICE(producer),
14761477
"seeking timestamp %" PRId64 " position " MLT_POSITION_FMT
14771478
" expected " MLT_POSITION_FMT " last_pos %" PRId64 "\n",

0 commit comments

Comments
 (0)