github: Use ./configure --enable-werror

We should test with compiler warnings turned into errors, to avoid
warnings being inadvertently introduced in new code.
This commit is contained in:
Richard W.M. Jones
2025-11-19 19:36:38 +00:00
parent 9a871a1948
commit f2dbcdcce9

View File

@@ -59,7 +59,7 @@ jobs:
- name: Compile the code
run: |
autoreconf -fiv
./configure --disable-gobject
./configure --disable-gobject --enable-werror
make -j
- name: Run the quick test
@@ -136,7 +136,7 @@ jobs:
run: |
su -c '
autoreconf -fiv &&
./configure CFLAGS="-fPIC -g -O2" --disable-gobject &&
./configure CFLAGS="-fPIC -g -O2" --disable-gobject --enable-werror &&
make -j
' guestfs