Eliminate silly warnings
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 12 Dec 2015 20:56:06 +0000 (15:56 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 12 Dec 2015 21:16:00 +0000 (16:16 -0500)
commit62616191297ad80082837079694503ec7d65052d
tree3e4281c9d87ae5f081cdbbe84c911e2d228570f5
parent0f6f5360b6de6ddbe9cf6febeb132372c2e113c4
Eliminate silly warnings

* src/ui/TTY/terminfo.c (emacs_tparam): We don't control tparm
prototype where some have const qualifiers others don't. Turning
the warning off is the sensible choice.

* src/ui/glyphs-eimage.c (gif_instantiate): Small cosmetic change.

* src/ui/X11/event-Xt.c (init_event_Xt_late): We don't control the
prototype for XtAppSetTypeConverter where some have const others don't
so turning the warning off is the sensible option...

* src/ui/X11/device-x.c (Fx_get_font_path): Const all around keeps
compilers happy.

* src/events/event-stream.c (asyneq_handle_non_command_event): Use
a void* temporary to sidestep warning.

* src/regex.c (POP_FAILURE_POINT): Don't cast unnecessarily.
(re_match_2_internal): Turn off const cast warning since the code
will always need it one macro expansion or another. Can't win here
without cheating :)

* src/buffer.c (directory_is_current_directory): Cast
to target type, when conversion fails.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/buffer.c
src/events/event-stream.c
src/regex.c
src/ui/TTY/terminfo.c
src/ui/X11/device-x.c
src/ui/X11/event-Xt.c
src/ui/glyphs-eimage.c