SwiftShader had over 270 warnings and this reduces the count to about 90, some of which can be addressed later, since some are less trivial to remove. The changes include: - Making sure we don't build any project with RTTI enabled, otherwise, we get some vftable size mismatch warnings - Making sure exception handling is the same for all configurations - Changing minus <unsigned> to the equivalent, and valid, ~<unsigned> + 1 - Explicitly casting types to bool by adding "!= 0" or "!= nullptr", depending on the case - Making sure no #define overrules another one without first doing the proper #undef of that #define - Removing signed VS unsigned comparisons - Making sure WinMain is __stdcall WebGL tests passed. Change-Id: I8d8d80adc862633b656d7e99c8ea461924fc0ef4 Reviewed-on: https://swiftshader-review.googlesource.com/3475Tested-by:Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ADCE.cpp | Loading commit data... | |
| BasicBlockPlacement.cpp | Loading commit data... | |
| CodeGenPrepare.cpp | Loading commit data... | |
| ConstantProp.cpp | Loading commit data... | |
| CorrelatedValuePropagation.cpp | Loading commit data... | |
| DCE.cpp | Loading commit data... | |
| DeadStoreElimination.cpp | Loading commit data... | |
| EarlyCSE.cpp | Loading commit data... | |
| GVN.cpp | Loading commit data... | |
| INSTALL.vcxproj | Loading commit data... | |
| INSTALL.vcxproj.filters | Loading commit data... | |
| IndVarSimplify.cpp | Loading commit data... | |
| JumpThreading.cpp | Loading commit data... | |
| LICM.cpp | Loading commit data... | |
| LLVMScalarOpts.vcxproj | Loading commit data... | |
| LLVMScalarOpts.vcxproj.filters | Loading commit data... | |
| LoopDeletion.cpp | Loading commit data... | |
| LoopIdiomRecognize.cpp | Loading commit data... | |
| LoopInstSimplify.cpp | Loading commit data... | |
| LoopRotation.cpp | Loading commit data... | |
| LoopStrengthReduce.cpp | Loading commit data... | |
| LoopUnrollPass.cpp | Loading commit data... | |
| LoopUnswitch.cpp | Loading commit data... | |
| LowerAtomic.cpp | Loading commit data... | |
| Makefile | Loading commit data... | |
| MemCpyOptimizer.cpp | Loading commit data... | |
| ObjCARC.cpp | Loading commit data... | |
| PACKAGE.vcxproj | Loading commit data... | |
| PACKAGE.vcxproj.filters | Loading commit data... | |
| Reassociate.cpp | Loading commit data... | |
| Reg2Mem.cpp | Loading commit data... | |
| SCCP.cpp | Loading commit data... | |
| Scalar.cpp | Loading commit data... | |
| ScalarReplAggregates.cpp | Loading commit data... | |
| SimplifyCFGPass.cpp | Loading commit data... | |
| SimplifyLibCalls.cpp | Loading commit data... | |
| Sink.cpp | Loading commit data... | |
| TailRecursionElimination.cpp | Loading commit data... |