clang warns that `name_search_ret` may be used unitiliazed if the domain
is none of {ust, python, log4j, jul}. However, those branches are only
accessible when one of these domains is used.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ibfea5be140a29a60ff8a60f0a994fcd815adb85d
name_search_ret = loglevel_log4j_name_to_value(opt_loglevel, &loglevel);
ev->loglevel = (int) loglevel;
- } else if (opt_python) {
+ } else {
+ /* python domain. */
enum lttng_loglevel_python loglevel;
name_search_ret = loglevel_python_name_to_value(opt_loglevel, &loglevel);
name_search_ret = loglevel_log4j_name_to_value(opt_loglevel, &loglevel);
ev->loglevel = (int) loglevel;
- } else if (opt_python) {
+ } else {
+ /* python domain. */
enum lttng_loglevel_python loglevel;
name_search_ret = loglevel_python_name_to_value(opt_loglevel, &loglevel);