From 8df721df25864f89772c58a4486314855bf1a37e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 28 Oct 2022 04:00:00 +0200 Subject: Fix some compiler warnings & buffer overflows --- src/graph/include/view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/graph/include') diff --git a/src/graph/include/view.h b/src/graph/include/view.h index 5d77d46f..6df571a0 100644 --- a/src/graph/include/view.h +++ b/src/graph/include/view.h @@ -34,8 +34,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /* This file is to be included by all the viewport files */ #define check(code) checker(code,__LINE__,"") -#undef saymem +#ifndef saymem #define saymem(a,b,c) saymemWithLine(a,b,c,__LINE__) +#endif #define exitWithAck(ACK,ACKsize,i) \ check(write(Socket,&(ACK),sizeof(ACKsize))); exit(i); #define NIL(type) ((type *)NULL) -- cgit v1.2.3