Add missing braces to bsearch inline implementation [BZ #28400]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 30 Sep 2021 16:44:06 +0000 (18:44 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 30 Sep 2021 18:40:12 +0000 (20:40 +0200)
commit32b96d0dec0294465d2221a8f049703599d9d8e4
treeb0503598aa040b51887b67675f64d30df889c52e
parentbeca615c5e6b5b6aeeac11f03a59b79d85b21cce
Add missing braces to bsearch inline implementation [BZ #28400]

GCC treats the pragma as a statement, so that the else branch only
consists of the pragma, not the return statement.

Fixes commit a725ff1de965f4cc4f36a7e8ae795d40ca0350d7 ("Suppress
-Wcast-qual warnings in bsearch").

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
bits/stdlib-bsearch.h