[Git][ghc/ghc][master] ghci: fix isMinTTY.h casing for Windows targets
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Sun Aug 18 17:06:06 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
3a145315 by Cheng Shao at 2024-08-18T13:05:45-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/3a145315052d6f66f9682ecff87b522011165d59
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3a145315052d6f66f9682ecff87b522011165d59
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/68070309/attachment.html>
More information about the ghc-commits
mailing list