Fix: remove NULL check of nonnull parameter in dlclose
authorAntoine Busque <abusque@efficios.com>
Mon, 9 May 2016 20:33:29 +0000 (16:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 9 May 2016 20:36:03 +0000 (16:36 -0400)
commit62734f7e9447b5dfca1e03a760ff6c99f11528db
treec3a5d51257e09da0144192031d7d42406dddef12
parent7018d9d4712cc794cb37db54e54a0a4c74c4dd3f
Fix: remove NULL check of nonnull parameter in dlclose

The `handle` parameter of `dlclose`, as defined in
`include/lttng/ust-dlfcn.h` is marked `__nonnull`. GCC starting with
version 6.1 emits warnings for comparisons of nonnull arguments
against NULL by default (see -Wnonnull-compare).

Therefore, this removes a superfluous NULL check on `handle`, for
which GCC emitted a warning.

Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-dl/lttng-ust-dl.c
This page took 0.026739 seconds and 4 git commands to generate.