summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/erec.h4
-rw-r--r--include/expression.h2
-rw-r--r--include/utils.h5
3 files changed, 3 insertions, 8 deletions
diff --git a/include/erec.h b/include/erec.h
index c17f5def..8ad5d83a 100644
--- a/include/erec.h
+++ b/include/erec.h
@@ -40,10 +40,10 @@ struct error_record {
extern struct error_record *erec_vcreate(enum error_record_types type,
const struct location *loc,
const char *fmt, va_list ap)
- __gmp_fmtstring(3, 0);
+ __fmtstring(3, 0);
extern struct error_record *erec_create(enum error_record_types type,
const struct location *loc,
- const char *fmt, ...) __gmp_fmtstring(3, 4);
+ const char *fmt, ...) __fmtstring(3, 4);
extern void erec_add_location(struct error_record *erec,
const struct location *loc);
extern void erec_destroy(struct error_record *erec);
diff --git a/include/expression.h b/include/expression.h
index e73ad90e..a960f8cb 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -441,7 +441,7 @@ extern void expr_set_type(struct expr *expr, const struct datatype *dtype,
struct eval_ctx;
extern int expr_binary_error(struct list_head *msgs,
const struct expr *e1, const struct expr *e2,
- const char *fmt, ...) __gmp_fmtstring(4, 5);
+ const char *fmt, ...) __fmtstring(4, 5);
#define expr_error(msgs, expr, fmt, args...) \
expr_binary_error(msgs, expr, NULL, fmt, ## args)
diff --git a/include/utils.h b/include/utils.h
index e18fabec..474c7595 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -27,11 +27,6 @@
#endif
#define __fmtstring(x, y) __attribute__((format(printf, x, y)))
-#if 0
-#define __gmp_fmtstring(x, y) __fmtstring(x, y)
-#else
-#define __gmp_fmtstring(x, y)
-#endif
#define __must_check __attribute__((warn_unused_result))
#define __noreturn __attribute__((__noreturn__))