Skip to content

Commit 7aa4d32

Browse files
committed
Suppress clang-diagnostic-shadow warning in str_icmp()
1 parent 6f262cb commit 7aa4d32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/strlib/strlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "strlib/strlib.h"
4747

4848
/* https://stackoverflow.com/a/30734030/2410359 */
49+
/* NOLINTBEGIN(clang-diagnostic-shadow) */
4950
int str_icmp(const char *s1, const char *s2) {
5051
int ca;
5152
int cb;
@@ -59,6 +60,7 @@ int str_icmp(const char *s1, const char *s2) {
5960
} while (ca == cb && ca != '\0');
6061
return ca - cb;
6162
}
63+
/* NOLINTEND(clang-diagnostic-shadow) */
6264

6365
bool str_is_bool(const char *str, bool *extracted_val) {
6466
if (0 == str_icmp(str, "true")) {

0 commit comments

Comments
 (0)