Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlang
3271-Fix-compiler-warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3271-Fix-compiler-warning.patch of Package erlang
From 84b3c1c7ad97bfd03d346a601f3af8177027614e Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson <dgud@erlang.org> Date: Tue, 2 Jun 2020 11:57:28 +0200 Subject: [PATCH 1/5] Fix compiler warning And enable warning as errors --- lib/eunit/src/Makefile | 3 ++- lib/eunit/src/eunit_tty.erl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile index 3510d3cc93..32f75202a0 100644 --- a/lib/eunit/src/Makefile +++ b/lib/eunit/src/Makefile @@ -24,7 +24,8 @@ RELSYSDIR = $(RELEASE_PATH)/lib/eunit-$(VSN) EBIN = ../ebin INCLUDE=../include -ERL_COMPILE_FLAGS += -pa $(EBIN) -pa ../../stdlib/ebin -I$(INCLUDE) +nowarn_shadow_vars +warn_unused_import +ERL_COMPILE_FLAGS += -pa $(EBIN) -pa ../../stdlib/ebin -I$(INCLUDE) \ + +nowarn_shadow_vars +warn_unused_import -Werror PARSE_TRANSFORM = eunit_autoexport.erl diff --git a/lib/eunit/src/eunit_tty.erl b/lib/eunit/src/eunit_tty.erl index ca6aa3b525..fd5245c971 100644 --- a/lib/eunit/src/eunit_tty.erl +++ b/lib/eunit/src/eunit_tty.erl @@ -232,7 +232,7 @@ print_test_error({error, Exception}, Data, #state{print_depth = Depth}) -> _ -> fwrite(" output:<<\"~ts\">>\n\n", [Output]) end; -print_test_error({skipped, Reason}, _, St) -> +print_test_error({skipped, Reason}, _, _St) -> fwrite("*did not run*\n::~ts\n", [format_skipped(Reason)]). format_skipped({module_not_found, M}) -> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor