-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Could you check the following compiler warnings? It might indicate real bugs.
Arif asked me to check how to install SReach on Gauss machine, so I gave a shot and found those messages.
/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp: In member function ‘virtual void Lai::doTest(long unsigned int, long unsigned int)’:
/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp:452:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
^~~~
/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp:452:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
else w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
^
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp: In member function ‘virtual void Lai::doTest(long unsigned int, long unsigned int)’:
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp:448:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
^~~~
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp:448:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
else w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
Metadata
Metadata
Assignees
Labels
No labels