From 65592bae41f057c7c11072286a8e48295f1f67da Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 16 Nov 1993 11:54:00 +0000 Subject: [PATCH] prevent some gcc warnings --- lang/pc/comp/chk_expr.c | 4 +++- lang/pc/comp/declar.g | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/pc/comp/chk_expr.c b/lang/pc/comp/chk_expr.c index fc4ec77df..76bfdab77 100644 --- a/lang/pc/comp/chk_expr.c +++ b/lang/pc/comp/chk_expr.c @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include "LLlex.h" #include "Lpars.h" @@ -24,6 +26,7 @@ #include "type.h" extern char *symbol2str(); +STATIC int ChkUnOper(); STATIC Xerror(nd, mess) @@ -728,7 +731,6 @@ ChkVarPar(nd, name) */ static char err_mes[80]; char *message = (char *) 0; - extern char *sprint(); if( !ChkVariable(nd) ) return 0; diff --git a/lang/pc/comp/declar.g b/lang/pc/comp/declar.g index fd10845af..5f3a21ab8 100644 --- a/lang/pc/comp/declar.g +++ b/lang/pc/comp/declar.g @@ -21,7 +21,6 @@ #include "type.h" #include "dbsymtab.h" -#define offsetof(type, field) (int) &(((type *)0)->field) #define PC_BUFSIZ (sizeof(struct file) - (int)((struct file *)0)->bufadr) int proclevel = 0; /* nesting level of procedures */ -- 2.34.1