[all-commits] [llvm/llvm-project] bc8f4a: [NFC] [Support] Fix warning when build with clang-...
Xiang Li via All-commits
all-commits at lists.llvm.org
Tue Sep 12 13:55:47 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc8f4a1b0a843df8ff22bd06e455f2c74e30a226
https://github.com/llvm/llvm-project/commit/bc8f4a1b0a843df8ff22bd06e455f2c74e30a226
Author: Xiang Li <python3kgae at outlook.com>
Date: 2023-09-12 (Tue, 12 Sep 2023)
Changed paths:
M llvm/lib/Support/regcomp.c
Log Message:
-----------
[NFC] [Support] Fix warning when build with clang-cl on Windows. (#65387)
Add const qualifier to avoid warning "_cast from 'const char *' to 'char*' drops const qualifier [-Werror,-Wcast-qual]_"
This will allow enable LLVM_ENABLE_WERROR when build with clang-cl on Windows.
This is imported from https://github.com/openbsd/src/commit/b81763002452802e4f7304ea60f121253bd94
Also removed the gcc change for the cast-qual warning which is not needed with const qualifier added.
More information about the All-commits
mailing list