removed gcc compilation flag -Wbad-function-cast
It makes it more difficult to directly cast the result of a function, requiring to store the result in an intermediate variable. It does not necessarily help readability, and this restriction can be difficult to overcome in some constructions, like some macros. also : fixed minor Visual conversion warnings in datagencli.c
This commit is contained in:
+2
-2
@@ -95,10 +95,10 @@ int main(int argc, const char** argv)
|
||||
break;
|
||||
case 'P':
|
||||
argument++;
|
||||
probaU32=0.0;
|
||||
probaU32 = 0;
|
||||
while ((*argument>='0') && (*argument<='9'))
|
||||
probaU32 *= 10, probaU32 += *argument++ - '0';
|
||||
if (probaU32>100.) probaU32=100.;
|
||||
if (probaU32>100) probaU32 = 100;
|
||||
break;
|
||||
case 'L': /* hidden argument : Literal distribution probability */
|
||||
argument++;
|
||||
|
||||
Reference in New Issue
Block a user