aboutsummaryrefslogtreecommitdiffstats
path: root/src/intervals.c
diff options
context:
space:
mode:
authorPaul Eggert2020-05-11 17:41:16 -0700
committerPaul Eggert2020-05-11 17:54:24 -0700
commit4645430b9287c3f5ae9863d465a5dd4158e313a9 (patch)
tree6c1ca7b2cc52909d0de38ad650569352c511d948 /src/intervals.c
parent00f0ad55cd7cbb71e42de0d52b7607ffb6a3c220 (diff)
downloademacs-4645430b9287c3f5ae9863d465a5dd4158e313a9.tar.gz
emacs-4645430b9287c3f5ae9863d465a5dd4158e313a9.zip
Pacify GCC 10.1.0
Pacify GCC 10.1.0 so that it does not issue false alarms when Emacs is configured with --enable-gcc-warnings. * src/dispnew.c (clear_glyph_row): * src/fns.c (hash_clear): * src/keyboard.c (append_tab_bar_item): * src/lisp.h (vcopy): * src/xfaces.c (get_lface_attributes_no_remap) (Finternal_copy_lisp_face, realize_default_face): * src/xmenu.c (set_frame_menubar): Work around -Warray-bounds false alarm in GCC 10.1.0. * src/intervals.c (copy_properties): Avoid -Wnull-dereference false alarm in GCC 10.1.0. * src/lisp.h (xvector_contents_addr, xvector_contents): New functions, useful for working around GCC bug 95072.
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c
index d4a734c923c..0257591a142 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -117,10 +117,11 @@ create_root_interval (Lisp_Object parent)
117/* Make the interval TARGET have exactly the properties of SOURCE. */ 117/* Make the interval TARGET have exactly the properties of SOURCE. */
118 118
119void 119void
120copy_properties (register INTERVAL source, register INTERVAL target) 120copy_properties (INTERVAL source, INTERVAL target)
121{ 121{
122 if (DEFAULT_INTERVAL_P (source) && DEFAULT_INTERVAL_P (target)) 122 if (DEFAULT_INTERVAL_P (source) && DEFAULT_INTERVAL_P (target))
123 return; 123 return;
124 eassume (source && target);
124 125
125 COPY_INTERVAL_CACHE (source, target); 126 COPY_INTERVAL_CACHE (source, target);
126 set_interval_plist (target, Fcopy_sequence (source->plist)); 127 set_interval_plist (target, Fcopy_sequence (source->plist));