]> git.eshelyaron.com Git - emacs.git/commit
Fix compilation warnings in non-toolkit builds
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Apr 2021 02:25:23 +0000 (04:25 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Apr 2021 02:25:30 +0000 (04:25 +0200)
commit8f52c5da76f7e536e83216a80887aab3294017be
treeb6a2abb92e2af3711130406126ae96c66f001d54
parente1541b5cb425c87e86650873b51f699c43c44fe5
Fix compilation warnings in non-toolkit builds

* src/xterm.c (x_create_toolkit_scroll_bar)
(x_create_horizontal_toolkit_scroll_bar): String constants for
XtSetArg are defined as const strings (in
/usr/include/X11/Xaw3d/ThreeD.h, for instance), but the argument
in XtSetArg is defined as either a const char* or a regular char*
in /usr/include/X11/Intrinsic.h.  Cast the argument to String
(which should be correct on all platforms, hopefully) to avoid a
compilation warning (bug#47452).
src/xterm.c