From: Warren Young Date: October 17 2006 7:37am Subject: Re: [bug #7448] Patch to remove some warnings List-Archive: http://lists.mysql.com/plusplus/6034 Message-Id: <45348821.70809@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Korolyov Ilya wrote: > > Original custom.pl.patch has such line: > > if (cmp = mysqlpp::sql_cmp(x.C$j , y.C$j )) > > it give some additional warnings, so I propose to change it for: > > if ((cmp = mysqlpp::sql_cmp(x.C$j , y.C$j))) Two minor objections: 1. What compiler(s) emit these warnings, and what flags does it take to make it happen? 2. I'd rather move the assignment out of the test part of the if statement than just add some opaque parens, but I can take care of that.