Skip to content

Commit

Permalink
Replace // comment check with full C89 check
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Dec 17, 2024
1 parent ee67ef8 commit ca6c41e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ jobs:
echo
false
fi
- name: Check comment style
- name: Check C89 compliance
env:
CFLAGS: "-O0 -Werror -std=c89 -pedantic -Isrc"
run: |
if grep " //" */*.[ch]; then
echo
echo "*** C++-style comments were detected in the above lines."
echo "*** Please change to use /* ... */ -style comments."
echo
false
fi
gcc $CFLAGS -c */*.c
build_and_coverage:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ca6c41e

Please sign in to comment.