]> 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:15:55 +0000 (12:15 -0500)
commit569962fd5a1f289880011e5526902171950ed1bf
treee94166c70f69ab67565d8c929f409b729b5e01ac
parent7cbf779f139d2da860c56adb7987a61d81693c4d
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