janneke pushed a commit to branch core-packages-team
in repository guix.

commit f77a0ba6e801c15765577651d32817e55d16f142
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Thu Jan 2 22:10:50 2025 +0100

    gnu: libjxr: Fix build with gcc-14.
    
    * gnu/packages/image.scm (libjxr)[arguments]: Extend CFLAGS to relax 
gcc-14's
    strictness.
    
    Change-Id: I44cedd787beae4efb945efde3217999af430c94b
---
 gnu/packages/image.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 48f6d8f8e6..efae0544dd 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -26,7 +26,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldp...@autistici.org>
 ;;; Copyright © 2020 R Veera Kumar <v...@vkten.in>
 ;;; Copyright © 2020, 2023 Maxim Cournoyer <maxim.courno...@gmail.com>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <jann...@gnu.org>
+;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <jann...@gnu.org>
 ;;; Copyright © 2020 Zhu Zihao <all_but_l...@163.com>
 ;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego 
<mon...@posteo.net>
 ;;; Copyright © 2021 Sharlatan Hellseher <sharlata...@gmail.com>
@@ -554,8 +554,16 @@ lossless JPEG manipulations such as rotation, scaling or 
cropping:
              ;; flag if there was no file decoding error.
              ;; The makefile is a "Non-ISO extended-ASCII text, with CRLF line
              ;; terminators" according to the file(1) utility.
-             (string-append "CFLAGS=-I. -Icommon/include -Iimage/sys -fPIC "
-                            "-D__ANSI__ -DDISABLE_PERF_MEASUREMENT -w -O "))
+             (string-append "CFLAGS=-I."
+                            " -Icommon/include"
+                            " -Iimage/sys"
+                            " -D__ANSI__"
+                            " -DDISABLE_PERF_MEASUREMENT"
+                            " -fPIC"
+                            " -w"
+                            " -O"
+                            " -Wno-error=implicit-function-declaration"
+                            " -Wno-error=incompatible-pointer-types"))
        #:tests? #f ; no check target
        #:phases
        (modify-phases %standard-phases

Reply via email to