]> code.delx.au - gnu-emacs/commitdiff
Avoid compiler warning
authorKen Brown <kbrown@cornell.edu>
Mon, 13 Jun 2016 23:26:05 +0000 (19:26 -0400)
committerKen Brown <kbrown@cornell.edu>
Mon, 13 Jun 2016 23:26:05 +0000 (19:26 -0400)
* src/w32fns.c (deliver_wm_chars): Add 'const' to declaration of
'type_CtrlAlt'.

src/w32fns.c

index fa45b4781c138552997a4eb811eeaf579587f7ff..f2b438cbe0ee873c9fc7349639fefe2f0754973f 100644 (file)
@@ -3382,7 +3382,7 @@ deliver_wm_chars (int do_translate, HWND hwnd, UINT msg, UINT wParam,
       W32Msg wmsg;
       DWORD console_modifiers = construct_console_modifiers ();
       int *b = buf, strip_ExtraMods = 1, hairy = 0;
-      char *type_CtrlAlt = NULL;
+      const char *type_CtrlAlt = NULL;
 
       /*  XXXX In fact, there may be another case when we need to do the same:
               What happens if the string defined in the LIGATURES has length