From e338b83e5b62f8bf90beca36dfd95555135d535a Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Sat, 16 Dec 2023 18:29:59 +0100 Subject: [PATCH] Fix NO_MALLOC_DECL redefinition warning Thanks to kberry. Closes #80 --- detex.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detex.l b/detex.l index 10ea4d9..ad07968 100644 --- a/detex.l +++ b/detex.l @@ -110,7 +110,10 @@ #define STRIPARGS(x) cArgs=x; LaBEGIN LaMacro2 #define CITE(x) if (fLatex && !fCite) KILLARGS(x) +/* avoid gratuitous gcc warning from passing -D for this on command line */ +#ifndef NO_MALLOC_DECL #define NO_MALLOC_DECL +#endif void LineBreak(); void Ignore();