annoying warning

Forum for software developers to discuss BCI2000 software development
Locked
tiziano
Posts: 18
Joined: 19 Oct 2008, 10:22

annoying warning

Post by tiziano » 08 Apr 2009, 16:38

I want to ask if it is possible to modify ExpressionParser at line 1659 adding something like

#ifdef __GNUC__
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
#endif


in order to avoid these annoying warning when compiling with Borland:

[C++ Warning] ExpressionParser.cpp(1659): W8008 Condition is always false
[C++ Warning] ExpressionParser.cpp(1660): W8066 Unreachable code

Thanks,

Tiziano

tiziano
Posts: 18
Joined: 19 Oct 2008, 10:22

Post by tiziano » 08 Apr 2009, 16:46

Another thing,
I think that in MEMPredictor.h <math> should be included among the libraries because it is required by the 'fabs' function.

Thanks again,
Tiziano

Locked

Who is online

Users browsing this forum: No registered users and 0 guests