emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/igc eb958b1d5cd: Remove redundant declarations to pacify GCC


From: Pip Cet
Subject: scratch/igc eb958b1d5cd: Remove redundant declarations to pacify GCC
Date: Fri, 10 Jan 2025 10:58:25 -0500 (EST)

branch: scratch/igc
commit eb958b1d5cd9e9683f416ac2481be3a6b83b900f
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>

    Remove redundant declarations to pacify GCC
    
    * src/igc.h (igc_xnmalloc_ambig, igc_xfree): Remove prototypes.
    * src/lisp.h: Add comment.
---
 src/igc.h  | 2 --
 src/lisp.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/igc.h b/src/igc.h
index f69e72638dc..38fde71c2a1 100644
--- a/src/igc.h
+++ b/src/igc.h
@@ -85,9 +85,7 @@ void *igc_alloc_global_ref (void);
 struct Lisp_Buffer_Local_Value *igc_alloc_blv (void);
 void *igc_alloc_handler (void);
 void *igc_xzalloc_ambig (size_t size);
-void *igc_xnmalloc_ambig (ptrdiff_t nitems, ptrdiff_t item_size);
 void *igc_realloc_ambig (void *block, size_t size);
-void igc_xfree (void *p);
 Lisp_Object *igc_xalloc_lisp_objs_exact (size_t n);
 void * igc_xalloc_raw_exact (size_t n);
 
diff --git a/src/lisp.h b/src/lisp.h
index df5dd89a487..d57cf0f41dc 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -6114,6 +6114,7 @@ extern void *record_xmalloc (size_t)
    positive.  The code is tuned for MULTIPLIER being a constant.  */
 
 # ifdef HAVE_MPS
+/* Defined in igc.c.  */
 void *igc_xnmalloc_ambig (ptrdiff_t nitems, ptrdiff_t item_size);
 void igc_xfree (void *p);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]