Author: Dann Corbit
Date: 17:51:30 02/17/04
Go up one level in this thread
On February 15, 2004 at 17:11:13, Bo Persson wrote: >On February 15, 2004 at 16:21:56, Dann Corbit wrote: > >>On February 15, 2004 at 16:20:48, Slater Wold wrote: >> >>>> >>>ICC doesn't seem to like Bob's assembly code to start off with. >>> >>> >>>vcinline.h(28): warning #1011: missing return statement at end of non-void funct >>>ion "PopCnt" >>> } >>> ^ >>> >>>vcinline.h(41): warning #1011: missing return statement at end of non-void funct >>>ion "FirstOne" >>> } >>> ^ >>> >>>vcinline.h(54): warning #1011: missing return statement at end of non-void funct >>>ion "LastOne" >>> } >>> ^ >> >>Compiler bug. It does not recall that the return is stored in EAX. >> > >No, it's not. The functions really doesn't have a return statement, right? For inline assembly, EAX is where the result is returned. A compiler that allows inline assembly should recognize that. It's a bug in my view. >Crafty isn't written for MSVC, so you generally have to lower the warning level, >Level 1 is usually right, or add a pragma for this specific warning I always elevate the warning level to the highest level allowed for any project and any compiler I am using. >#pragma warning(disable : 1011) > >That will do it. > >Except that it is still 32 bit code... I never use disable warning pragmas.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.