[Openmp-commits] [PATCH] D96584: [OpenMP] Avoid warnings about unused static functions on windows
Martin Storsjö via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Feb 12 11:56:42 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG16428a8d91a9: [OpenMP] Avoid warnings about unused static functions on windows (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96584/new/
https://reviews.llvm.org/D96584
Files:
openmp/runtime/src/kmp_environment.cpp
openmp/runtime/src/kmp_io.cpp
Index: openmp/runtime/src/kmp_io.cpp
===================================================================
--- openmp/runtime/src/kmp_io.cpp
+++ openmp/runtime/src/kmp_io.cpp
@@ -84,6 +84,7 @@
static void __kmp_redirect_output(void) {
__kmp_acquire_bootstrap_lock(&__kmp_console_lock);
+ (void)is_console;
if (!__kmp_console_exists) {
HANDLE ho;
HANDLE he;
Index: openmp/runtime/src/kmp_environment.cpp
===================================================================
--- openmp/runtime/src/kmp_environment.cpp
+++ openmp/runtime/src/kmp_environment.cpp
@@ -376,6 +376,7 @@
{ "HOME=/home/lev", "TERM=xterm", NULL }
*/
+#if KMP_OS_UNIX
static void
___kmp_env_blk_parse_unix(kmp_env_blk_t *block, // M: Env block to fill.
char **env // I: Unix environment to parse.
@@ -423,6 +424,7 @@
block->vars = vars;
block->count = count;
}
+#endif
void __kmp_env_blk_init(kmp_env_blk_t *block, // M: Block to initialize.
char const *bulk // I: Initialization string, or NULL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96584.323432.patch
Type: text/x-patch
Size: 1061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210212/5ca64859/attachment.bin>
More information about the Openmp-commits
mailing list