gnu: screen: Fix build with gcc-14.

* gnu/packages/screen.scm (screen):
[#:configure-flags]: Add -Wno-error=int-conversions and
-Wno-error=incompatible-pointer-types to CFLAGS.

Change-Id: I14166477ff104ed1e64b9deebb89e032b50f69f9
Signed-off-by: Zheng Junjie <z572@z572.online>
This commit is contained in:
Yelninei 2025-06-22 13:14:58 +00:00 committed by Zheng Junjie
parent 8e874ded5c
commit 6f1c5aed8a
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -74,7 +74,10 @@
(list
#:configure-flags
;; GNU_SOURCE must be defined for mallocmock_reset() to be defined
#~(list "CFLAGS=-O2 -g -D_GNU_SOURCE=1"
#~(list (string-append "CFLAGS=-O2 -g -D_GNU_SOURCE=1"
;; relax gcc-14's strictness, needed for tests.
" -Wno-error=int-conversion"
" -Wno-error=incompatible-pointer-types")
;; By default, screen supports 16 colors, but we want 256 when
;; ~/.screenrc contains 'term xterm-256color'.