diff options
author | Ozan Tezcan <ozantezcan@gmail.com> | 2022-08-14 14:29:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-14 14:29:05 +0300 |
commit | c5ff163d53f1e9c1b647c4bf413386015ac4be71 (patch) | |
tree | 95cd4ec407f35f692a53d7ee2f7755cb796fcb40 /src/notify.c | |
parent | 8aad2ac35201fd6feadb6f59e7cc0c2afb19129b (diff) | |
download | redis-c5ff163d53f1e9c1b647c4bf413386015ac4be71.tar.gz |
Fix Lua compile warning on GCC 12.1 (#11115)
Fix Lua compile warning on GCC 12.1
GCC 12.1 prints a warning on compile:
```
ldump.c: In function ‘DumpString’:
ldump.c:63:26: warning: the comparison will always evaluate as ‘false’ for the pointer operand in ‘s + 24’ must not be NULL [-Waddress]
63 | if (s==NULL || getstr(s)==NULL)
```
It seems correct, `getstr(s)` can't be `NULL`.
Also, I see Lua v5.2 does not have that check: https://github.com/lua/lua/blob/v5-2/ldump.c#L63
Diffstat (limited to 'src/notify.c')
0 files changed, 0 insertions, 0 deletions