[commit: ghc] master: rts: fix barf format attribute (059596d)

git at git.haskell.org git at git.haskell.org
Thu Feb 8 00:04:57 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/059596df51619314a2e240af618fe7f4d2550ff2/ghc

>---------------------------------------------------------------

commit 059596df51619314a2e240af618fe7f4d2550ff2
Author: Douglas Wilson <douglas.wilson at gmail.com>
Date:   Thu Feb 8 00:03:28 2018 +0000

    rts: fix barf format attribute
    
    Summary: See definition of PRINTF above the change
    
    Reviewers: bgamari, erikd, simonmar, Phyx
    
    Reviewed By: Phyx
    
    Subscribers: Phyx, rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4392


>---------------------------------------------------------------

059596df51619314a2e240af618fe7f4d2550ff2
 includes/rts/Messages.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/rts/Messages.h b/includes/rts/Messages.h
index 206d40f..c3199b2 100644
--- a/includes/rts/Messages.h
+++ b/includes/rts/Messages.h
@@ -41,7 +41,7 @@
  */
 void barf(const char *s, ...)
    GNUC3_ATTRIBUTE(__noreturn__)
-   GNUC3_ATTRIBUTE(format(printf, 1, 2));
+   GNUC3_ATTRIBUTE(format(PRINTF, 1, 2));
 
 void vbarf(const char *s, va_list ap)
    GNUC3_ATTRIBUTE(__noreturn__);



More information about the ghc-commits mailing list