mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Silence clang static analyzer warnings
This commit is contained in:
parent
52c00ea982
commit
cd39ccf752
10 changed files with 35 additions and 19 deletions
|
|
@ -1592,8 +1592,8 @@ void os_abort(void)
|
|||
unsigned i;
|
||||
#endif
|
||||
|
||||
const char* platform = "";
|
||||
const char* compiler = "";
|
||||
const char* platform;
|
||||
const char* compiler;
|
||||
|
||||
#ifdef _linux
|
||||
platform = ", linux";
|
||||
|
|
@ -1601,12 +1601,16 @@ void os_abort(void)
|
|||
platform = ", macOS";
|
||||
#elif defined(__FreeBSD__)
|
||||
platform = ", FreeBSD";
|
||||
#else
|
||||
platform = "";
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
compiler = ", clang " __clang_version__;
|
||||
#elif defined(__GNUC__)
|
||||
compiler = ", gcc " __VERSION__;
|
||||
#else
|
||||
compiler = "";
|
||||
#endif
|
||||
|
||||
os_syslog(OS_LVL_CRITICAL, "Stacktrace of " PACKAGE " v" VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue