Skip to content

Commit 21df729

Browse files
committed
Further adjustments to make splint happy.
1 parent ba09d89 commit 21df729

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python-c-ext-sanity-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
# NOTE: point splint to Ubuntu's custom /usr/include/python3.x for Python.h
9191
echo "Lint changed code files: $(git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$')"
9292
# NOTE: show splint warnings but don't fail unless it found critical errors
93-
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib -D__gnuc_va_list=va_list $(python3-config --includes) -check &> splint.log || true
93+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char $(python3-config --includes) -check &> splint.log || true
9494
cat splint.log
9595
grep '*** Cannot continue' splint.log && false
9696
@@ -116,7 +116,7 @@ jobs:
116116
# NOTE: point splint to Ubuntu's custom /usr/include/python3.x for Python.h
117117
echo "Lint changed code files: $(git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$')"
118118
# NOTE: show splint warnings but don't fail unless it found critical errors
119-
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib -D__gnuc_va_list=va_list $(python3-config --includes) -check &> splint.log || true
119+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char $(python3-config --includes) -check &> splint.log || true
120120
cat splint.log
121121
grep '*** Cannot continue' splint.log && false
122122
@@ -157,6 +157,6 @@ jobs:
157157
echo "with splint from $(which splint)"
158158
ls -l /bin/splint
159159
# NOTE: show splint warnings but don't fail unless it found critical errors
160-
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib -D__gnuc_va_list=va_list -check &> splint.log || true
160+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char -check &> splint.log || true
161161
cat splint.log
162162
grep '*** Cannot continue' splint.log && false

0 commit comments

Comments
 (0)