Suppress -Wcast-qual warnings in bsearch
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 May 2021 15:48:19 +0000 (16:48 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 30 Sep 2021 11:18:48 +0000 (12:18 +0100)
commita725ff1de965f4cc4f36a7e8ae795d40ca0350d7
treeec4b0188ebd3a3a1277bfffd7df11fb21103fb2e
parent88361b408b9dbd313f15413cc2e6be0f1cafb01a
Suppress -Wcast-qual warnings in bsearch

The first cast to (void *) is redundant but should be (const void *)
anyway, because that's the type of the lvalue being assigned to.

The second cast is necessary and intentionally not const-correct, so
tell the compiler not to warn about it.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
bits/stdlib-bsearch.h