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:35:44 +0000 (16:35 -0400)
commite7953e6e102fdc71419cb2a7169468af46f568c4
treeb91d2eced2c6861a8d5c16deaa7bdf35baac2d64
parent35ebe09bb46607a9286094e2d95fe67f9a6ab8bf
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.026212 seconds and 4 git commands to generate.