fix: clang warnings (#21247)

This commit is contained in:
zeertzjq
2022-12-01 09:05:25 +08:00
committed by GitHub
parent 282dda643a
commit bd2d0edcbf
4 changed files with 4 additions and 2 deletions

View File

@@ -2760,6 +2760,7 @@ int win_close(win_T *win, bool free_buf, bool force)
if (win->w_floating) {
ui_comp_remove_grid(&win->w_grid_alloc);
assert(first_tabpage != NULL); // suppress clang "Dereference of NULL pointer"
if (win->w_float_config.external) {
for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next) {
if (tp == curtab) {