[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 02/05: build: Enable more compiler warnings.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 02/05: build: Enable more compiler warnings. |
Date: |
Sun, 31 Dec 2023 10:28:12 -0500 (EST) |
civodul pushed a commit to branch devel
in repository shepherd.
commit 0f43d5e9482faf9f9c71756038913810aec6e924
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Dec 31 01:16:39 2023 +0100
build: Enable more compiler warnings.
* Makefile.am (GUILE_WARNINGS): New variable.
(%.go): Use it.
---
Makefile.am | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 0670169..4f9cd55 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -224,6 +224,10 @@ modules/shepherd/config.scm:
modules/shepherd/config.scm.in Makefile
$(MKDIR_P) "`dirname $@`"
$(SED) $(instantiate) < $< >$@
+GUILE_WARNINGS = \
+ -Wformat -Wunbound-variable -Warity-mismatch \
+ -Wmacro-use-before-definition -Wuse-before-definition
+
AM_V_GUILEC = $(AM_V_GUILEC_$(V))
AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY))
AM_V_GUILEC_0 = @echo " GUILEC " $@;
@@ -240,7 +244,7 @@ AM_V_GUILEC_0 = @echo " GUILEC " $@;
$(GUILD) compile --target="$(host)" \
-L "$(top_builddir)/modules" \
-L "$(top_srcdir)/modules" \
- -Wformat -Wunbound-variable -Warity-mismatch \
+ $(GUILE_WARNINGS) \
-o "$@" "$<" >&$$out
SUFFIXES = .go