about summary refs log tree commit diff stats
path: root/themes/gruvbox
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-11-18 22:27:20 +0000
committerSergei Trofimovich <slyich@gmail.com>2021-11-18 22:27:20 +0000
commit753d9dbbdb19df28827e8fdbb36455e1cfd3f52d (patch)
tree3c1e9df90732c2b578f0e8a9a64e6a6e0a19bda5 /themes/gruvbox
parent9a9122c148a8462eb612c7a28ab0f2e3f2f0464e (diff)
downloadprofani-tty-753d9dbbdb19df28827e8fdbb36455e1cfd3f52d.tar.gz
src/plugins/callbacks.c: drop redundant NULL pointer check
gcc-12 detects redundant check against array of arrays as:

    src/plugins/callbacks.c: In function ‘_free_command_help’:
    src/plugins/callbacks.c:85:26: error: the comparison will always evaluate as ‘true’ for the address of ‘args’ will never be NULL [-Werror=address]
       85 |     while (help->args[i] != NULL && help->args[i][0] != NULL) {
          |                          ^~
    In file included from ./src/ui/ui.h:44,
                     from ./src/command/cmd_defs.h:42,
                     from src/plugins/callbacks.c:41:
    ./src/command/cmd_funcs.h:48:12: note: ‘args’ declared here
       48 |     gchar* args[128][2];
          |            ^~~~
Diffstat (limited to 'themes/gruvbox')
0 files changed, 0 insertions, 0 deletions