diff options
author | Brad King <brad.king@kitware.com> | 2022-11-06 13:33:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-06 13:33:10 (GMT) |
commit | 0d35f598d9841a944e030c0b9a5e6439ca0f8674 (patch) | |
tree | 7d8e4af2b8dd97c619839ecfccc601c4f137caaf /Source/kwsys/ProcessUNIX.c | |
parent | b46f582bc399211dc0b4dbda8d2b57d8d1cd59a8 (diff) | |
parent | ee9c09548cf4fa8c7edf0eb53494367fc17c859a (diff) | |
download | CMake-0d35f598d9841a944e030c0b9a5e6439ca0f8674.zip CMake-0d35f598d9841a944e030c0b9a5e6439ca0f8674.tar.gz CMake-0d35f598d9841a944e030c0b9a5e6439ca0f8674.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-11-06 (9aebb97f)
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 45a9e6f..b25b258 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -2011,6 +2011,14 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, return 0; } +#if defined(__clang__) && defined(__has_warning) +# if __has_warning("-Wshorten-64-to-32") +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wshorten-64-to-32" +# define KWSYSPE_CLANG_DIAG_WSHORTEN +# endif +#endif + /* Get the length of time before the given timeout time arrives. Returns 1 if the time has already arrived, and 0 otherwise. */ static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime, @@ -2061,6 +2069,11 @@ static kwsysProcessTime kwsysProcessTimeGetCurrent(void) return current; } +#if defined(KWSYSPE_CLANG_DIAG_WSHORTEN) +# undef KWSYSPE_CLANG_DIAG_WSHORTEN +# pragma clang diagnostic pop +#endif + static double kwsysProcessTimeToDouble(kwsysProcessTime t) { return (double)t.tv_sec + (double)(t.tv_usec) * 0.000001; |