static-code-checker-fixes: make scan-build aware of ELEKTRA_ASSERT
@@ -16,6 +16,13 @@ extern "C" {
void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 5, 6)))
+#endif
+
+// For scan-build / clang analyzer to detect our assertions abort
+#ifndef CLANG_ANALYZER_NORETURN
+#if __has_feature(attribute_analyzer_noreturn)
+__attribute__((analyzer_noreturn))
+#endif
#endif
;
