LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
281 stars 155 forks source link

clang warning #11014

Closed JohnsterID closed 2 weeks ago

JohnsterID commented 2 weeks ago

Fixes Wbitwise-instead-of-logical (118 warnings). Clang and msvc builds. Mod runs.

Using the the logical OR operator (||) instead of the bitwise OR operator (|).

A few more to go...

118 [-Wbitwise-instead-of-logical]
44 [-Wdelete-non-abstract-non-virtual-dtor]
16 [-Woverloaded-virtual]
111 [-Wreorder-ctor]
66 [-Wunused-but-set-variable]
2 [-Wunused-const-variable]
6228 [-Wunused-function]
30 [-Wunused-variable]