mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Toolchain: Disable VLA warnings due to bug in GCC 11.2
This commit is contained in:
parent
dba3a668b1
commit
c9eea92839
1 changed files with 4 additions and 1 deletions
|
|
@ -95,7 +95,10 @@ G_CFLAGS="$G_CFLAGS $CP_CFLAGS"
|
|||
# FCFLAGS, for gfortran
|
||||
FCFLAGS="$G_CFLAGS \$(FCDEBFLAGS) \$(WFLAGS) \$(DFLAGS)"
|
||||
# CFLAGS, special flags for gcc
|
||||
CFLAGS="$G_CFLAGS -std=c11 -Wall -Wextra -Werror \$(DFLAGS)"
|
||||
|
||||
# TODO: Remove -Wno-vla-parameter after upgrade to gcc 11.3.
|
||||
# https://gcc.gnu.org/bugzilla//show_bug.cgi?id=101289
|
||||
CFLAGS="$G_CFLAGS -std=c11 -Wall -Wextra -Werror -Wno-vla-parameter \$(DFLAGS)"
|
||||
|
||||
# Linker flags
|
||||
# About --whole-archive see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52590
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue