Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / error.h
index 8af989e0436fd910678eb994fa7ebef48c63dd0a..daef71fdbc90646be59ebc781131a59688ad6c0c 100644 (file)
@@ -44,7 +44,7 @@ struct log_time {
        char str[19];
 };
 extern DECLARE_URCU_TLS(struct log_time, error_log_time);
-extern DECLARE_URCU_TLS(const char *, logger_thread_name);
+extern LTTNG_HIDDEN DECLARE_URCU_TLS(const char *, logger_thread_name);
 
 extern int lttng_opt_quiet;
 extern int lttng_opt_verbose;
@@ -221,7 +221,7 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type)
                        DBG3(fmt, ## args);     \
                        break;                  \
                default:                        \
-                       assert(0);              \
+                       abort();                \
                }                               \
        } while(0);
 
This page took 0.023168 seconds and 4 git commands to generate.