Skip to content

Commit

Permalink
CI: switch to Debian 11 with GCC 11.
Browse files Browse the repository at this point in the history
Also enable warnings as errors and GCC's static analyzer.
  • Loading branch information
relan committed Oct 9, 2021
1 parent ab19b44 commit f826fee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ task:
matrix:
- name: debian
container:
image: gcc:8-buster
image: gcc:11-bullseye
install_script: |
apt-get update
apt-get install -y libfuse-dev
env:
EXTRA_CFLAGS: -fanalyzer

- name: macos
macos_instance:
Expand All @@ -45,7 +47,7 @@ task:
compile_script: |
autoreconf --install
./configure CFLAGS='-Wall -Wextra'
./configure CFLAGS="-Wall -Wextra -Werror $EXTRA_CFLAGS"
make -k
test_script: |
Expand Down
4 changes: 2 additions & 2 deletions libexfat/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ ssize_t exfat_read(struct exfat_dev* dev, void* buffer, size_t size)
ssize_t exfat_write(struct exfat_dev* dev, const void* buffer, size_t size)
{
#ifdef USE_UBLIO
ssize_t result = ublio_pwrite(dev->ufh, buffer, size, dev->pos);
ssize_t result = ublio_pwrite(dev->ufh, (void*) buffer, size, dev->pos);
if (result >= 0)
dev->pos += size;
return result;
Expand All @@ -381,7 +381,7 @@ ssize_t exfat_pwrite(struct exfat_dev* dev, const void* buffer, size_t size,
off_t offset)
{
#ifdef USE_UBLIO
return ublio_pwrite(dev->ufh, buffer, size, offset);
return ublio_pwrite(dev->ufh, (void*) buffer, size, offset);
#else
return pwrite(dev->fd, buffer, size, offset);
#endif
Expand Down

0 comments on commit f826fee

Please sign in to comment.