Skip to content

Commit 117cf3d

Browse files
committed
Another attempt at making splint happy.
1 parent 21df729 commit 117cf3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 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 +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char $(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 +gnuextensions -D__gnuc_va_list=va_list $(python3-config --includes) &> splint.log || true
9494
cat splint.log
9595
grep '*** Cannot continue' splint.log && false
9696
@@ -115,8 +115,9 @@ jobs:
115115
# NOTE: we only run splint error check for changed C files to limit noise
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)$')"
118+
# NOTE: splint complains about NATIVE_TSS_KEY_T in system header here
118119
# 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 +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char $(python3-config --includes) -check &> splint.log || true
120+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char $(python3-config --includes) &> splint.log || true
120121
cat splint.log
121122
grep '*** Cannot continue' splint.log && false
122123
@@ -157,6 +158,6 @@ jobs:
157158
echo "with splint from $(which splint)"
158159
ls -l /bin/splint
159160
# 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 +unixlib +gnuextensions -D__gnuc_va_list=va_list -DNATIVE_TSS_KEY_T=char -check &> splint.log || true
161+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib +gnuextensions -D__gnuc_va_list=va_list &> splint.log || true
161162
cat splint.log
162163
grep '*** Cannot continue' splint.log && false

0 commit comments

Comments
 (0)