]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_logic: Don't emit warning if both IF branches are empty.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 21 Sep 2022 23:17:13 +0000 (23:17 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 26 Sep 2022 17:33:02 +0000 (12:33 -0500)
commit9ba789d297501b89a33e3c1ee0cad159ebea0ecc
treef70e45930f534f21b7aa74fa35a41ff0f03dd3a4
parent231f99b3977e66191003d75e488cd19a8bd78ed7
func_logic: Don't emit warning if both IF branches are empty.

The IF function currently emits warnings if both IF branches
are empty. However, there is no actual necessity that either
branch be non-empty as, unlike other conditional applications/
functions, nothing is inherently done with IF, and both
sides could legitimately be empty. The warning is thus turned
into a debug message.

ASTERISK-30243 #close

Change-Id: I5250625dd720f95e1859b5dfb933905d7e7a730e
funcs/func_logic.c