configure: enable -Wsuggest-attribute=format
[babeltrace.git] / src / plugins / common / param-validation / param-validation.h
index 3113ff4debf6b8e5b78ea3b78822687c9c12d97e..9acfb6fd0f2727b13d3da775d7644a413c01bac5 100644 (file)
 
 #include <stdio.h> /* For __MINGW_PRINTF_FORMAT. */
 
-#ifdef __MINGW_PRINTF_FORMAT
-# define BT_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
-#else
-# define BT_PRINTF_FORMAT printf
-#endif
+#include <common/macros.h>
 
 struct bt_param_validation_context;
 struct bt_param_validation_value_descr;
@@ -98,12 +94,13 @@ struct bt_param_validation_map_value_entry_descr {
        const struct bt_param_validation_value_descr value_descr;
 };
 
+BT_HIDDEN
 enum bt_param_validation_status bt_param_validation_validate(
                const bt_value *params,
                const struct bt_param_validation_map_value_entry_descr *entries,
                gchar **error);
 
-__attribute__((format(BT_PRINTF_FORMAT, 2, 3)))
+BT_HIDDEN __BT_ATTR_FORMAT_PRINTF(2, 3)
 enum bt_param_validation_status bt_param_validation_error(
                struct bt_param_validation_context *ctx,
                const char *format, ...);
This page took 0.024341 seconds and 4 git commands to generate.