From 16ff59115315917b93185d026aeefea06db9b0f4 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sat, 2 May 2026 17:47:25 +0100 Subject: [PATCH] check_mongen_order shouldn't be compiled into release builds This function is only used during development, so if it's included in a release build, the compiler will warn that it's never used. --- src/makemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/makemon.c b/src/makemon.c index 718d7551e..9af36be2f 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -17,7 +17,6 @@ staticfn int align_shift(struct permonst *); staticfn int temperature_shift(struct permonst *); staticfn boolean mk_gen_ok(int, unsigned, unsigned); staticfn int QSORTCALLBACK cmp_init_mongen_order(const void *, const void *); -staticfn void check_mongen_order(void); staticfn void init_mongen_order(void); staticfn boolean wrong_elem_type(struct permonst *); staticfn void m_initgrp(struct monst *, coordxy, coordxy, int, mmflags_nht); @@ -1777,6 +1776,8 @@ cmp_init_mongen_order(const void *p1, const void *p2) return difficulty1 - difficulty2; } +#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) +staticfn void check_mongen_order(void); /* check that monsters are in correct difficulty order for mkclass() */ staticfn void check_mongen_order(void) @@ -1799,6 +1800,7 @@ check_mongen_order(void) } } } +#endif /* initialize monster order for mkclass */ staticfn void