diff options
author | 2007-10-04 05:47:07 +0000 | |
---|---|---|
committer | 2007-10-04 05:47:07 +0000 | |
commit | c1887f36ab05c64db281413f725a21429e616f12 (patch) | |
tree | 1be834464238aafe5fa11e7908001febe3ac08cd | |
parent | Since we know the firmware load works, merge the single firmware files (diff) | |
download | wireguard-openbsd-c1887f36ab05c64db281413f725a21429e616f12.tar.xz wireguard-openbsd-c1887f36ab05c64db281413f725a21429e616f12.zip |
void functions should not return value
-rw-r--r-- | usr.bin/pcc/cc/ccom/trees.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/pcc/cc/ccom/trees.c b/usr.bin/pcc/cc/ccom/trees.c index a017e2486d5..060c646af6e 100644 --- a/usr.bin/pcc/cc/ccom/trees.c +++ b/usr.bin/pcc/cc/ccom/trees.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trees.c,v 1.3 2007/09/16 18:52:52 otto Exp $ */ +/* $OpenBSD: trees.c,v 1.4 2007/10/04 05:47:07 otto Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -743,8 +743,10 @@ chkpun(NODE *p) return; break; default: - if ((t1 == VOID && t2 != VOID) || (t1 != VOID && t2 == VOID)) - return uerror("value of void expression used"); + if ((t1 == VOID && t2 != VOID) || (t1 != VOID && t2 == VOID)) { + uerror("value of void expression used"); + return; + } break; } |