[PATCH] D35054: [Solaris] get rid of _RESTRICT_KYWD warning during the build
Fedor Sergeev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 6 06:32:36 PDT 2017
fedor.sergeev created this revision.
(re)definition of _RESTRICT_KYWD rightfully causes a warning message during the Solaris build.
This hack is not needed if build compiler is properly configured (.e.g /usr/bin/gcc) so just remove it.
https://reviews.llvm.org/D35054
Files:
lib/Support/Unix/Program.inc
Index: lib/Support/Unix/Program.inc
===================================================================
--- lib/Support/Unix/Program.inc
+++ lib/Support/Unix/Program.inc
@@ -40,9 +40,6 @@
#include <unistd.h>
#endif
#ifdef HAVE_POSIX_SPAWN
-#ifdef __sun__
-#define _RESTRICT_KYWD
-#endif
#include <spawn.h>
#if defined(__APPLE__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35054.105419.patch
Type: text/x-patch
Size: 337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170706/0dd9cbcc/attachment.bin>
More information about the llvm-commits
mailing list