]> git.eshelyaron.com Git - emacs.git/commit
Port --enable-gcc-warnings to GCC 8
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Apr 2018 23:49:24 +0000 (16:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Apr 2018 23:56:48 +0000 (16:56 -0700)
commit8c3215e7a47e3caaa005bf573765ed63e0739b89
tree0b90cacdef1a62ff888e92d0742b715ee69705ce
parent2b9ab8c8fba849da8bf2aa45e65b122bb937a6b3
Port --enable-gcc-warnings to GCC 8

* configure.ac: Do not use GCC 8’s new -Wcast-align flag.
* lib-src/ebrowse.c (xmalloc):
* lib-src/emacsclient.c (xmalloc, xstrdup):
* lib-src/etags.c (xmalloc):
* lib-src/make-docfile.c (xmalloc):
* lib-src/movemail.c (xmalloc):
* src/dispnew.c (new_glyph_pool):
* src/regex.c (xmalloc):
* src/term.c (tty_menu_create):
* src/tparam.h (tparam):
Use ATTRIBUTE_MALLOC.  Also see GCC bug 85562.
* lib-src/emacsclient.c (fail):
Do not dereference a null pointer.
* src/frame.c (delete_frame):
Add a decl with UNINIT to work around GCC bug 85563.
* src/menu.h (finish_menu_items):
Do not use attribute const.
* src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
12 files changed:
configure.ac
lib-src/ebrowse.c
lib-src/emacsclient.c
lib-src/etags.c
lib-src/make-docfile.c
lib-src/movemail.c
src/dispnew.c
src/frame.c
src/menu.h
src/regex.c
src/term.c
src/tparam.h