[Git][ghc/ghc][master] fix printf warning when using with ghc with clang on mingw

Marge Bot gitlab at gitlab.haskell.org
Wed May 13 06:06:01 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
90e38b81 by Emeka Nkurumeh at 2020-05-13T02:05:51-04:00
fix printf warning when using with ghc with clang on mingw
- - - - -


1 changed file:

- includes/rts/Messages.h


Changes:

=====================================
includes/rts/Messages.h
=====================================
@@ -18,7 +18,7 @@
 
 #include <stdarg.h>
 
-#if defined(mingw32_HOST_OS)
+#if defined(mingw32_HOST_OS) && !defined(__clang__)
 /* On Win64, if we say "printf" then gcc thinks we are going to use
    MS format specifiers like %I64d rather than %llu */
 #define PRINTF gnu_printf



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/90e38b8139c10854280da56664c040120256bacc

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/90e38b8139c10854280da56664c040120256bacc
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200513/976ff9e0/attachment.html>


More information about the ghc-commits mailing list