From: Philip Kaufmann Date: Mon, 30 Apr 2012 23:46:03 +0000 (+0200) Subject: fix compiler warning "suggest parentheses around assignment used as truth X-Git-Tag: v0.4.0-unstable~129^2~1^2^2~2^2^2~13 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=48984829151d76fefb62029e500145d7e4f19a8d fix compiler warning "suggest parentheses around assignment used as truth value [-Wparentheses]" in util.cpp --- diff --git a/src/util.cpp b/src/util.cpp index a45d191..766c3ab 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -236,7 +236,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...) *pend = '\0'; char* p1 = pszBuffer; char* p2; - while (p2 = strchr(p1, '\n')) + while ((p2 = strchr(p1, '\n'))) { p2++; char c = *p2;