[Git][ghc/ghc][wip/marge_bot_batch_merge_job] ghci: fix isMinTTY.h casing for Windows targets

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sun Aug 18 12:05:23 UTC 2024



Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC


Commits:
a12fd0d1 by Cheng Shao at 2024-08-18T08:05:02-04:00
ghci: fix isMinTTY.h casing for Windows targets

This commit fixes isMinTTY.h casing in isMinTTY.c that's compiled for
Windows targets. While this looks harmless given Windows filesystems
are case-insensitive by default, it does cause a compilation warning
with recent versions of clang, so we might as well fix the casing:

```
driver\ghci\isMinTTY.c:10:10: error:
     warning: non-portable path to file '"isMinTTY.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
   |
10 | #include "isMINTTY.h"
   |          ^

 #include "isMINTTY.h"
         ^~~~~~~~~~~~
         "isMinTTY.h"
1 warning generated.
```

- - - - -


1 changed file:

- driver/utils/isMinTTY.c


Changes:

=====================================
driver/utils/isMinTTY.c
=====================================
@@ -7,7 +7,7 @@
 
 #include <stdbool.h>
 #include <windows.h>
-#include "isMINTTY.h"
+#include "isMinTTY.h"
 
 bool isMinTTY() {
   const HANDLE h = GetStdHandle(STD_ERROR_HANDLE);



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a12fd0d1e07b1172833e8e03da355453b0d74994
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/20240818/0be38d55/attachment.html>


More information about the ghc-commits mailing list