You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Condition in gpre.cpp looks like a bug, but the one in ods.cpp is correct - it depends on the macro ODS_VERSION that changes from version to version so that it could be "always false" in some FB versions and relevant in another FB versions.
Submitted by: David Binderman (dcb314)
I just compiled the source code of firebirdsql-2.5.2 with extra Linux gcc compiler
flag -Wlogical-op.
It said
../src/gpre/gpre.cpp:1815:22: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]
../src/jrd/ods.cpp:44:35: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]
I've checked them both and they both look like && / || mixups.
Suggest code rework.
The text was updated successfully, but these errors were encountered: