From ace298679e97feb2f0058b0bce7451715808a065 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Wed, 1 Jan 2025 23:36:22 +0900 Subject: [PATCH] Turn off a new GCC warning that forbids build of older Emacsens --- emacs.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.nix b/emacs.nix index d4d3e12..d5e5d11 100644 --- a/emacs.nix +++ b/emacs.nix @@ -101,6 +101,12 @@ stdenv.mkDerivation rec { '' ]; + env = lib.optionalAttrs (stdenv.cc.isGNU && lib.versionOlder version "24.3") { + NIX_CFLAGS_COMPILE = toString [ + "-Wno-error=implicit-function-declaration" + ]; + }; + installTargets = "tags install"; # Create site-start.el which is needed by the wrapper