From faacc8ce36690170d4f76be678d92cf8c3342ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 9 May 2018 11:49:49 +0200 Subject: [PATCH] I/O [NT]: Get rid of DO_NOT_WARN(). --- src/fdlib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fdlib.c b/src/fdlib.c index 1e7a7dfce8..4ba522e5a1 100644 --- a/src/fdlib.c +++ b/src/fdlib.c @@ -999,7 +999,7 @@ PMOD_EXPORT p_wchar0 *pike_utf16_to_utf8(const p_wchar1 *str) for (i = 0; (c = str[i]); i++) { if (c < 0x80) { - ret[j++] = DO_NOT_WARN(c & 0x7f); + ret[j++] = c & 0x7f; continue; } if (c < 0x800) { @@ -1306,10 +1306,10 @@ PMOD_EXPORT int debug_fd_truncate(const char *file, INT64 len) return -1; } - high = DO_NOT_WARN((LONG)(len >> 32)); + high = (LONG)(len >> 32); len &= (INT64)0xffffffffUL; - if (SetFilePointer(h, DO_NOT_WARN((long)len), &high, FILE_BEGIN) == + if (SetFilePointer(h, (long)len, &high, FILE_BEGIN) == INVALID_SET_FILE_POINTER) { DWORD err = GetLastError(); if (err != NO_ERROR) { @@ -2525,7 +2525,7 @@ PMOD_EXPORT DIR *opendir(char *dir) ret->h = FindFirstFileW(foo, &ret->find_data); free(foo); - if(ret->h == DO_NOT_WARN(INVALID_HANDLE_VALUE)) + if(ret->h == INVALID_HANDLE_VALUE) { /* FIXME: Handle empty directories. */ errno=ENOENT; -- GitLab