comparison src/os_mswin.c @ 29130:247a6d944401 v8.2.5085

patch 8.2.5085: gcc gives warning for signed/unsigned difference Commit: https://github.com/vim/vim/commit/819ab82f7ee505d6fc4c6dc408e4b27c0fbe4a97 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 22:34:14 2022 +0100 patch 8.2.5085: gcc gives warning for signed/unsigned difference Problem: Gcc gives warning for signed/unsigned difference. Solution: Use a different pointer type. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Jun 2022 23:45:03 +0200
parents d8a962d7b008
children 2e6c9df8bea1
comparison
equal deleted inserted replaced
29129:9119f1e662f5 29130:247a6d944401
662 */ 662 */
663 void 663 void
664 display_errors(void) 664 display_errors(void)
665 { 665 {
666 # ifdef FEAT_GUI 666 # ifdef FEAT_GUI
667 char *p; 667 char_u *p;
668 668
669 # ifdef VIMDLL 669 # ifdef VIMDLL
670 if (gui.in_use || gui.starting) 670 if (gui.in_use || gui.starting)
671 # endif 671 # endif
672 { 672 {
673 if (error_ga.ga_data != NULL) 673 if (error_ga.ga_data != NULL)
674 { 674 {
675 // avoid putting up a message box with blanks only 675 // avoid putting up a message box with blanks only
676 for (p = (char *)error_ga.ga_data; *p; ++p) 676 for (p = (char_u *)error_ga.ga_data; *p; ++p)
677 if (!isspace(*p)) 677 if (!isspace(*p))
678 { 678 {
679 // Only use a dialog when not using --gui-dialog-file: 679 // Only use a dialog when not using --gui-dialog-file:
680 // write text to a file. 680 // write text to a file.
681 if (!gui_dialog_log((char_u *)"Errors", p)) 681 if (!gui_dialog_log((char_u *)"Errors", p))
682 (void)gui_mch_dialog( 682 (void)gui_mch_dialog(
683 gui.starting ? VIM_INFO : 683 gui.starting ? VIM_INFO :
684 VIM_ERROR, 684 VIM_ERROR,
685 gui.starting ? (char_u *)_("Message") : 685 gui.starting ? (char_u *)_("Message") :
686 (char_u *)_("Error"), 686 (char_u *)_("Error"),
687 (char_u *)p, (char_u *)_("&Ok"), 687 p, (char_u *)_("&Ok"),
688 1, NULL, FALSE); 688 1, NULL, FALSE);
689 break; 689 break;
690 } 690 }
691 ga_clear(&error_ga); 691 ga_clear(&error_ga);
692 } 692 }