summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-02-06 13:27:35 -0500
committerBen Gamari <ben@smart-cactus.org>2018-02-06 14:21:16 -0500
commit4d1c3b72ec27c8e51fb40809bba3ce35246a2966 (patch)
tree8a50e7647223fbdbd670e1e2bf97f84cc74ffd9f /includes
parent1512b63347dff5aeae4a27d7421f7608cc43a196 (diff)
downloadhaskell-4d1c3b72ec27c8e51fb40809bba3ce35246a2966.tar.gz
rts: Add format attribute to barf
Test Plan: Validate Reviewers: erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4374
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/Messages.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/rts/Messages.h b/includes/rts/Messages.h
index 2a6a84b821..206d40fb8b 100644
--- a/includes/rts/Messages.h
+++ b/includes/rts/Messages.h
@@ -40,7 +40,8 @@
* expected to return.
*/
void barf(const char *s, ...)
- GNUC3_ATTRIBUTE(__noreturn__);
+ GNUC3_ATTRIBUTE(__noreturn__)
+ GNUC3_ATTRIBUTE(format(printf, 1, 2));
void vbarf(const char *s, va_list ap)
GNUC3_ATTRIBUTE(__noreturn__);