Clang produces: "error: code will never be executed [-Werror,-Wunreachable-code]" For code following an unconditional `break`. But it hints that: "note: silence by adding parentheses to mark code as explicitly dead" Hence the dead code can follow an "if((true)) break;" without producing the warning/error. Note that in this instance we could have just removed the dead code, but I wanted to make it clear that this is an example of an unfinished Reactor function. Bug: b/178929463 Change-Id: I1ea4dac91877fcede189d09e3953568b2813129e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52288Tested-by:Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| GLESUnitTests | Loading commit data... | |
| MathUnitTests | Loading commit data... | |
| ReactorBenchmarks | Loading commit data... | |
| ReactorUnitTests | Loading commit data... | |
| SystemBenchmarks | Loading commit data... | |
| SystemUnitTests | Loading commit data... | |
| VulkanBenchmarks | Loading commit data... | |
| VulkanUnitTests | Loading commit data... | |
| VulkanWrapper | Loading commit data... | |
| check_build_files | Loading commit data... | |
| fuzzers | Loading commit data... | |
| kokoro | Loading commit data... | |
| regres | Loading commit data... | |
| scan_sources | Loading commit data... | |
| presubmit.sh | Loading commit data... | |
| rundroid.sh | Loading commit data... |