gnu: localed: Fix build with gcc-14.

* gnu/packages/freedesktop.scm (localed)[arguments]: Add c_args to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I2cb4d9bc7e22ab0bedacbd79b98d33a1b6a27bd0
Modified-by: Zheng Junjie <z572@z572.online>
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-09 11:36:32 +01:00 committed by Zheng Junjie
parent 10ed768407
commit bb77fc1a78
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -40,6 +40,7 @@
;;; Copyright © 2024 Dariqq <dariqq@posteo.net>
;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
;;; Copyright © 2024 dan <i@dan.games>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -1196,6 +1197,8 @@ This library provides just sd-bus (and the busctl utility).")
"nss-systemd")))
(list
#:configure-flags #~(list
;; Relax gcc-14's strictness.
"-Dc_args=-g -O2 -Wno-format-overflow"
#$@(map (lambda (component)
(string-append "-D" component "=false"))
(delete "localed" components)))