From 1c94f88d5ecddd4f0d03e1c2751f6414a04ee73b Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 1 May 2012 01:46:03 +0200 Subject: [PATCH] fix compiler warning "suggest parentheses around assignment used as truth value [-Wparentheses]" in util.cpp --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index cd3d3b94..3569f22e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -252,7 +252,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;