Skip to content

Commit

Permalink
CI: build with GCC 11
Browse files Browse the repository at this point in the history
this fixes a new false positive memory leak (#4297), but unfortunately
opens a few new false positives (#4274).
therefore let it ignore memleak checks for now, until the detection
is a bit more stable in GCC.

Fixes: #4274, #4297
  • Loading branch information
reinerh committed May 23, 2021
1 parent e8a972a commit 07b85f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install gcc-10 libapparmor-dev libselinux1-dev expect xzdec
run: sudo apt-get install gcc-11 libapparmor-dev libselinux1-dev expect xzdec
- name: configure
run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux --prefix=/usr
run: CC=gcc-11 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux --prefix=/usr
- name: make
run: make
- name: make install
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-analyzer enable GCC 10 static analyzer
--enable-analyzer enable GCC static analyzer
--enable-apparmor enable apparmor
--enable-selinux SELinux labeling support
--disable-dbusproxy disable dbus proxy
Expand Down Expand Up @@ -3293,7 +3293,7 @@ fi

if test "x$enable_analyzer" = "xyes"; then :

EXTRA_CFLAGS="$EXTRA_CFLAGS -fanalyzer"
EXTRA_CFLAGS="$EXTRA_CFLAGS -fanalyzer -Wno-analyzer-malloc-leak"

fi

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ AX_CHECK_COMPILE_FLAG(
)

AC_ARG_ENABLE([analyzer],
AS_HELP_STRING([--enable-analyzer], [enable GCC 10 static analyzer]))
AS_HELP_STRING([--enable-analyzer], [enable GCC static analyzer]))
AS_IF([test "x$enable_analyzer" = "xyes"], [
EXTRA_CFLAGS="$EXTRA_CFLAGS -fanalyzer"
EXTRA_CFLAGS="$EXTRA_CFLAGS -fanalyzer -Wno-analyzer-malloc-leak"
])

HAVE_APPARMOR=""
Expand Down

0 comments on commit 07b85f3

Please sign in to comment.