summaryrefslogtreecommitdiff
path: root/src/pdumper.c
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-12-04 22:31:36 +0100
committerAndrea Corallo <akrl@sdf.org>2020-12-04 23:21:15 +0100
commit39bdb3f6f54cdba80f1efbecab4bbb08428e7cc8 (patch)
treee9bbb5e96cad61716ab68de5956eccc515f3eb9d /src/pdumper.c
parentdcfd367d282ab37f00373a424fd193022a8f4bf6 (diff)
downloademacs-39bdb3f6f54cdba80f1efbecab4bbb08428e7cc8.tar.gz
emacs-39bdb3f6f54cdba80f1efbecab4bbb08428e7cc8.tar.bz2
emacs-39bdb3f6f54cdba80f1efbecab4bbb08428e7cc8.zip
Vanilla build warning clean-up
* lisp/emacs-lisp/disass.el (native-comp-unit-file) (subr-native-comp-unit): Declare function. * lisp/progmodes/elisp-mode.el (native-compile): Likewise. * lisp/emacs-lisp/package.el (comp-el-to-eln-filename): Likewise. * lisp/startup.el (normal-top-level): Silence warning. * src/data.c (syms_of_data): 'Ssubr_native_lambda_list' is always defined. * src/pdumper.c (dump_cold_native_subr): Move under ifdefs. (dump_drain_cold_data): Add ifdefs.
Diffstat (limited to 'src/pdumper.c')
-rw-r--r--src/pdumper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index 1a7aee6343a..b3abbd66f0c 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -3405,6 +3405,7 @@ dump_cold_bignum (struct dump_context *ctx, Lisp_Object object)
}
}
+#ifdef HAVE_NATIVE_COMP
static void
dump_cold_native_subr (struct dump_context *ctx, Lisp_Object subr)
{
@@ -3425,6 +3426,7 @@ dump_cold_native_subr (struct dump_context *ctx, Lisp_Object subr)
const char *c_name = XSUBR (subr)->native_c_name[0];
dump_write (ctx, c_name, 1 + strlen (c_name));
}
+#endif
static void
dump_drain_cold_data (struct dump_context *ctx)
@@ -3469,9 +3471,11 @@ dump_drain_cold_data (struct dump_context *ctx)
case COLD_OP_BIGNUM:
dump_cold_bignum (ctx, data);
break;
+#ifdef HAVE_NATIVE_COMP
case COLD_OP_NATIVE_SUBR:
dump_cold_native_subr (ctx, data);
break;
+#endif
default:
emacs_abort ();
}