mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
3193160487
tools/power/rapl.cpp:844:5 [-Wunreachable-code] code will never be executed clang reports a -Wunreachable-code warning for sigemptyset() because Darwin's sigemptyset() is a macro that always returns 0. Thus `if (sigemptyset(&sa.sa_mask) < 0)` is always false and `Abort("sigemptyset() failed")` is never called. Linux's sigemptyset() can return 0 or -1. The extra parens around (0) suppress the clang warning. |
||
---|---|---|
.. | ||
mach_commands.py | ||
moz.build | ||
rapl.cpp |