[llvm] 32842c1 - [CMake] Add explicit return to GetErrcMessages test program
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 19 09:43:11 PST 2022
Author: John Brawn
Date: 2022-01-19T17:42:56Z
New Revision: 32842c1bc9cd82f87139141ca3f609d3a0b65136
URL: https://github.com/llvm/llvm-project/commit/32842c1bc9cd82f87139141ca3f609d3a0b65136
DIFF: https://github.com/llvm/llvm-project/commit/32842c1bc9cd82f87139141ca3f609d3a0b65136.diff
LOG: [CMake] Add explicit return to GetErrcMessages test program
Added:
Modified:
llvm/cmake/modules/GetErrcMessages.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/GetErrcMessages.cmake b/llvm/cmake/modules/GetErrcMessages.cmake
index a8c2272b9d3fa..a3bccc104b1fb 100644
--- a/llvm/cmake/modules/GetErrcMessages.cmake
+++ b/llvm/cmake/modules/GetErrcMessages.cmake
@@ -25,6 +25,7 @@ function(get_errc_messages outvar)
int main() {
std::cout << getMessageFor(ENOENT) << ';' << getMessageFor(EISDIR);
std::cout << ';' << getMessageFor(EINVAL) << ';' << getMessageFor(EACCES);
+ return 0;
}
")
More information about the llvm-commits
mailing list