resolve some valid warnings on Windows

../sys/windows/windmain.c:226:12: warning: address of array 'gc.chosen_windowtype' will always
      evaluate to 'true' [-Wpointer-bool-conversion]
  226 |     if (gc.chosen_windowtype && *gc.chosen_windowtype)

../sys/windows/consoletty.c:873:27: warning: address of array 'back->utf8str' will always evaluate
      to 'true' [-Wpointer-bool-conversion]
  873 |                 if (back->utf8str && front->utf8str
      |                     ~~~~~~^~~~~~~ ~~
../sys/windows/consoletty.c:873:45: warning: address of array 'front->utf8str' will always evaluate
      to 'true' [-Wpointer-bool-conversion]
  873 |                 if (back->utf8str && front->utf8str
      |                                   ~~ ~~~~~~~^~~~~~~
This commit is contained in:
nhmall
2026-04-21 05:13:46 -04:00
parent 0ca6e6f16f
commit 32acb80174
2 changed files with 2 additions and 2 deletions

View File

@@ -870,7 +870,7 @@ back_buffer_flip(void)
do_anything |= do_wide_content; do_anything |= do_wide_content;
} else { } else {
#endif #endif
if (back->utf8str && front->utf8str if (back->utf8str[0] && front->utf8str[0]
&& strcmp((const char *) back->utf8str, && strcmp((const char *) back->utf8str,
(const char *) front->utf8str)) (const char *) front->utf8str))
do_anything |= do_utf8_content; do_anything |= do_utf8_content;

View File

@@ -223,7 +223,7 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
#ifdef EARLY_CONFIGFILE_PASS #ifdef EARLY_CONFIGFILE_PASS
rcfile_interface_options(); rcfile_interface_options();
if (gc.chosen_windowtype && *gc.chosen_windowtype) if (*gc.chosen_windowtype)
windowtype = gc.chosen_windowtype; windowtype = gc.chosen_windowtype;
#endif #endif