1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 15:00:45 -08:00
emacs/lib-src
Paul Eggert dc3006cf14 Pacify GCC 9.2.1 20190927 -O3
Original problem report by N. Jackson in:
https://lists.gnu.org/r/emacs-devel/2020-03/msg00047.html
I found some other warnings when I used gcc, and fixed them
with this patch.
* lib-src/etags.c: Include verify.h.
(xnmalloc, xnrealloc): Tell the compiler that NITEMS is
nononnegative and ITEM_SIZE is positive.
* src/conf_post.h (__has_attribute_returns_nonnull)
(ATTRIBUTE_RETURNS_NONNULL): New macros.
* src/editfns.c (Fuser_full_name): Don’t assume Fuser_login_name
returns non-nil.
* src/intervals.c (rotate_right, rotate_left, update_interval):
* src/intervals.h (LENGTH, LEFT_TOTAL_LENGTH, RIGHT_TOTAL_LENGTH):
Use TOTAL_LENGTH0 or equivalent on intervals that might be null.
* src/intervals.h (TOTAL_LENGTH): Assume arg is nonnull.
(TOTAL_LENGTH0): New macro, with the old TOTAL_LENGTH meaning.
(make_interval, split_interval_right): Add ATTRIBUTE_RETURNS_NONNULL.
* src/pdumper.c (dump_check_dump_off): Now returns void, since
no caller uses the return value.  Redo assert to pacify GCC.
(decode_emacs_reloc): Add a seemingly-random eassume to pacify GCC.
Ugly, and I suspect due to a bug in GCC.
2020-03-04 13:48:58 -08:00
..
ChangeLog.1 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
emacsclient.c Make emacs prefer an existing ~/.emacs.d to an existing XDG location 2020-01-16 16:05:45 +01:00
etags.c Pacify GCC 9.2.1 20190927 -O3 2020-03-04 13:48:58 -08:00
hexl.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
make-docfile.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
make-fingerprint.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
Makefile.in Update copyright year to 2020 2020-01-01 00:59:52 +00:00
movemail.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ntlib.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ntlib.h Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pop.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pop.h Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rcs2log Fix copyright years by hand 2020-01-01 01:01:53 +00:00
README
update-game-score.c Update copyright year to 2020 2020-01-01 00:59:52 +00:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.