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 |
|---|---|---|
| .. | ||
| ADT | Loading commit data... | |
| Analysis | Loading commit data... | |
| Assembly | Loading commit data... | |
| Bitcode | Loading commit data... | |
| CodeGen | Loading commit data... | |
| Config | Loading commit data... | |
| DebugInfo | Loading commit data... | |
| ExecutionEngine | Loading commit data... | |
| MC | Loading commit data... | |
| Object | Loading commit data... | |
| Support | Loading commit data... | |
| TableGen | Loading commit data... | |
| Target | Loading commit data... | |
| Transforms | Loading commit data... | |
| Argument.h | Loading commit data... | |
| Attributes.h | Loading commit data... | |
| AutoUpgrade.h | Loading commit data... | |
| BasicBlock.h | Loading commit data... | |
| CallGraphSCCPass.h | Loading commit data... | |
| CallingConv.h | Loading commit data... | |
| Constant.h | Loading commit data... | |
| Constants.h | Loading commit data... | |
| DebugInfoProbe.h | Loading commit data... | |
| DefaultPasses.h | Loading commit data... | |
| DerivedTypes.h | Loading commit data... | |
| Function.h | Loading commit data... | |
| GVMaterializer.h | Loading commit data... | |
| GlobalAlias.h | Loading commit data... | |
| GlobalValue.h | Loading commit data... | |
| GlobalVariable.h | Loading commit data... | |
| INSTALL.vcxproj | Loading commit data... | |
| INSTALL.vcxproj.filters | Loading commit data... | |
| InitializePasses.h | Loading commit data... | |
| InlineAsm.h | Loading commit data... | |
| InstrTypes.h | Loading commit data... | |
| Instruction.def | Loading commit data... | |
| Instruction.h | Loading commit data... | |
| Instructions.h | Loading commit data... | |
| IntrinsicInst.h | Loading commit data... | |
| Intrinsics.gen | Loading commit data... | |
| Intrinsics.h | Loading commit data... | |
| Intrinsics.td | Loading commit data... | |
| IntrinsicsARM.td | Loading commit data... | |
| IntrinsicsAlpha.td | Loading commit data... | |
| IntrinsicsCellSPU.td | Loading commit data... | |
| IntrinsicsPTX.td | Loading commit data... | |
| IntrinsicsPowerPC.td | Loading commit data... | |
| IntrinsicsX86.td | Loading commit data... | |
| IntrinsicsXCore.td | Loading commit data... | |
| LLVMContext.h | Loading commit data... | |
| LinkAllPasses.h | Loading commit data... | |
| LinkAllVMCore.h | Loading commit data... | |
| Linker.h | Loading commit data... | |
| Metadata.h | Loading commit data... | |
| Module.h | Loading commit data... | |
| OperandTraits.h | Loading commit data... | |
| Operator.h | Loading commit data... | |
| PACKAGE.vcxproj | Loading commit data... | |
| PACKAGE.vcxproj.filters | Loading commit data... | |
| Pass.h | Loading commit data... | |
| PassAnalysisSupport.h | Loading commit data... | |
| PassManager.h | Loading commit data... | |
| PassManagers.h | Loading commit data... | |
| PassRegistry.h | Loading commit data... | |
| PassSupport.h | Loading commit data... | |
| SymbolTableListTraits.h | Loading commit data... | |
| Type.h | Loading commit data... | |
| Use.h | Loading commit data... | |
| User.h | Loading commit data... | |
| Value.h | Loading commit data... | |
| ValueSymbolTable.h | Loading commit data... | |
| intrinsics_gen.vcxproj | Loading commit data... | |
| intrinsics_gen.vcxproj.filters | Loading commit data... | |
| llvm_headers_do_not_build.vcxproj | Loading commit data... | |
| llvm_headers_do_not_build.vcxproj.filters | Loading commit data... |