From 8122432e4738b35bb105c6b58f5767ca112bc705 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 31 May 2010 13:00:39 -0700 Subject: [PATCH] Remove OpenBSD compilation warning. This is a trivial change to remove a warning when compiling using the latest version of OpenBSD. --- design_dump.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/design_dump.cc b/design_dump.cc index fb9c935ea..88adc7e18 100644 --- a/design_dump.cc +++ b/design_dump.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2009 Stephen Williams (steve@icarus.com) + * Copyright (c) 1998-2010 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -128,7 +128,8 @@ ostream& operator << (ostream&o, ivl_switch_type_t val) static inline void dump_scope_path(ostream&o, const NetScope*scope) { - if (const NetScope*parent = scope->parent()) { + const NetScope*parent = scope->parent(); + if (parent) { dump_scope_path(o, parent); o << "."; }