From d4277ef130af9bdc051a3cfa7edb298c33247f27 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 7 Jan 2021 01:10:25 +0900 Subject: [PATCH] [util] Mark PL_CheckType as const I keep forgetting to do optimized builds :( --- include/QF/qfplist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/QF/qfplist.h b/include/QF/qfplist.h index 3f22a9e16..8f8db669f 100644 --- a/include/QF/qfplist.h +++ b/include/QF/qfplist.h @@ -310,7 +310,7 @@ plitem_t *PL_NewString (const char *str); */ void PL_Free (plitem_t *item); -int PL_CheckType (pltype_t field_type, pltype_t item_type); +int PL_CheckType (pltype_t field_type, pltype_t item_type) __attribute__((const)); void PL_TypeMismatch (plitem_t *messages, const plitem_t *item, const char *name, pltype_t field_type, pltype_t item_type);