Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
0816-megaco-Silence-dialyzer-warnings-for-speci...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0816-megaco-Silence-dialyzer-warnings-for-special-functio.patch of Package erlang
From 2f5f505ee9a0c0e24afd8f06ec6debb2b2f6721a Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 4 Nov 2019 15:30:10 +0100 Subject: [PATCH 2/2] [megaco] Silence dialyzer warnings for "special" function The functions (is_enabled and is_reentrant_enabled) used macro's defined during configure, which means they have at any given (run-) time a defined value. So, in order to satisfy dialyzer, the nowarn_function attribute has been added. --- lib/megaco/src/flex/megaco_flex_scanner.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/megaco/src/flex/megaco_flex_scanner.erl b/lib/megaco/src/flex/megaco_flex_scanner.erl index ef94594a8e..67c6a2b5a4 100644 --- a/lib/megaco/src/flex/megaco_flex_scanner.erl +++ b/lib/megaco/src/flex/megaco_flex_scanner.erl @@ -31,9 +31,11 @@ -define(SCHED_ID(), erlang:system_info(scheduler_id)). -define(SMP_SUPPORT_DEFAULT(), erlang:system_info(smp_support)). +-dialyzer({nowarn_function, is_enabled/0}). is_enabled() -> (true =:= ?ENABLE_MEGACO_FLEX_SCANNER). - + +-dialyzer({nowarn_function, is_reentrant_enabled/0}). is_reentrant_enabled() -> (true =:= ?MEGACO_REENTRANT_FLEX_SCANNER). -- 2.16.4
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