Skip to content

Commit d6bf6eb

Browse files
committed
Remove -fsyntaxonly, used to miss some warnings
1 parent 660d9fc commit d6bf6eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/spec-testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939
with:
4040
path: ~/.opam
4141
key: ${{ matrix.version }}
42-
42+
4343
- name: Setup OPAM
4444
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
4545
run: |
4646
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
4747
eval $(opam env --switch=${{ matrix.version }})
4848
opam repo add --yes --this-switch coq-released https://coq.inria.fr/opam/released
4949
opam install --deps-only --yes ./cn.opam
50-
50+
5151
- name: Save OPAM cache
5252
uses: actions/cache/save@v4
5353
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
@@ -87,7 +87,7 @@ jobs:
8787
opam switch ${{ matrix.version }}
8888
eval $(opam env --switch=${{ matrix.version }})
8989
cd tests; ./run-cn-test-gen.sh
90-
90+
9191
- name: Run CN-Seq-Test-Gen CI tests
9292
run: |
9393
opam switch ${{ matrix.version }}

.github/workflows/style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Check Clang warnings
9898
run: |
99-
find runtime/libcn/ -iname '*.c' | xargs clang-19 -I runtime/libcn/include/ -fsyntax-only -Werror -Wall
99+
find runtime/libcn/ -iname '*.c' -exec clang-19 -c -I runtime/libcn/include/ -Werror -Wall -o /dev/null {} ';'
100100
101101
gcc-warnings:
102102
name: GCC warnings
@@ -115,7 +115,7 @@ jobs:
115115
116116
- name: Check GCC warnings
117117
run: |
118-
find runtime/libcn/ -iname '*.c' | xargs gcc -I runtime/libcn/include/ -fsyntax-only -Werror -Wall
118+
find runtime/libcn/ -iname '*.c' -exec gcc -c -I runtime/libcn/include/ -Werror -Wall -o /dev/null {} ';'
119119
120120
shellcheck:
121121
name: ShellCheck

0 commit comments

Comments
 (0)