File 0637-tftp-Fix-behaviour-warnings.patch of Package erlang

From 1338ac70c14597b5075d9f3e141fa06b336cf6e1 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Tue, 26 Nov 2019 15:50:10 +0100
Subject: [PATCH 2/2] tftp: Fix -behaviour warnings

---
 lib/tftp/src/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile
index 602ae845a4..029bd731bd 100644
--- a/lib/tftp/src/Makefile
+++ b/lib/tftp/src/Makefile
@@ -36,16 +36,16 @@ RELSYSDIR = $(RELEASE_PATH)/lib/$(APPLICATION)-$(VSN)
 # ----------------------------------------------------
 # Target Specs
 # ----------------------------------------------------
-BEHAVIOUR_MODULES=
+BEHAVIOUR_MODULES= \
+	tftp \
+	tftp_logger
 
 MODULES = \
-	tftp \
 	tftp_app \
 	tftp_binary \
 	tftp_engine \
 	tftp_file \
 	tftp_lib \
-	tftp_logger \
 	tftp_sup 
 
 HRL_FILES = tftp.hrl
@@ -69,7 +69,10 @@ APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
 # ----------------------------------------------------
 # FLAGS
 # ----------------------------------------------------
-
+EXTRA_ERLC_FLAGS = +warn_unused_vars
+ERL_COMPILE_FLAGS += \
+	-pz $(EBIN) \
+	$(EXTRA_ERLC_FLAGS)
 
 # ----------------------------------------------------
 # Targets
-- 
2.16.4

openSUSE Build Service is sponsored by