From a542da01c1e4a1c463024896dfadb4e0ee4e4c21 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Thu, 24 Jan 2008 14:58:26 +0100 Subject: [PATCH] Reordered conditions to avoid false alarms from valgrind. Rev: src/program.c:1.641 --- src/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/program.c b/src/program.c index 53db1cadc2..29b6209f48 100644 --- a/src/program.c +++ b/src/program.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: program.c,v 1.640 2008/01/21 22:46:18 grubba Exp $ +|| $Id: program.c,v 1.641 2008/01/24 13:58:26 mast Exp $ */ #include "global.h" @@ -2176,8 +2176,8 @@ void fixate_program(void) if(found_better!=-1) continue; } - if ((fun->func.offset == -1) && (funp->id_flags & ID_INLINE) && - IDENTIFIER_IS_PIKE_FUNCTION(fun->identifier_flags)) { + if (IDENTIFIER_IS_PIKE_FUNCTION(fun->identifier_flags) && + (fun->func.offset == -1) && (funp->id_flags & ID_INLINE)) { my_yyerror("Missing definition for local function %S.", fun->name); } -- GitLab