maint: port more modules to GCC 8
commit72333a9c6955aa7ca938dbb5295b78e906c89f07
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 May 2018 00:38:50 +0000 (3 17:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 May 2018 00:40:16 +0000 (3 17:40 -0700)
treee28d2b3727861d9c1e1daacd12ac99359edc3c52
parent44b65c481f32b785ef75a55533437c3b46bed352
maint: port more modules to GCC 8

* lib/dirname.h (base_name):
* lib/exclude.h (new_exclude):
* lib/xstrndup.h (xstrndup):
Add malloc attribute.
* lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
* lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
This pacifies GCC 8.
* m4/gnulib-common.m4 (gl_COMMON_BODY):
Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
ChangeLog
lib/dfa.h
lib/dirname.h
lib/eealloc.h
lib/exclude.h
lib/pagealign_alloc.h
lib/readutmp.c
lib/sig-handler.h
lib/xalloc.h
lib/xstrndup.h
m4/gnulib-common.m4