diff options
author | Steve Hay <SteveHay@planit.com> | 2008-02-25 17:42:38 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2008-02-25 17:42:38 +0000 |
commit | 0934c9d92d03b9af0e4cebeaa0942ad89e7cc04b (patch) | |
tree | 00d50ab3dd5df478121b7a73bff04b637f3506c1 /win32 | |
parent | c427f4d2d4575fbc8a5190932fe321136c7597b3 (diff) | |
download | perl-0934c9d92d03b9af0e4cebeaa0942ad89e7cc04b.tar.gz |
Silence Borland compiler warnings (except for warnings from zlib) here:
http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html
p4raw-id: //depot/perl@33370
Diffstat (limited to 'win32')
-rw-r--r-- | win32/perlhost.h | 6 | ||||
-rw-r--r-- | win32/win32.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/win32/perlhost.h b/win32/perlhost.h index 76e469657f..3bd3e16a5a 100644 --- a/win32/perlhost.h +++ b/win32/perlhost.h @@ -616,7 +616,7 @@ PerlStdIOGetc(struct IPerlStdIO* piPerl, FILE* pf) return win32_getc(pf); } -char* +STDCHAR* PerlStdIOGetBase(struct IPerlStdIO* piPerl, FILE* pf) { #ifdef FILE_base @@ -649,7 +649,7 @@ PerlStdIOGetCnt(struct IPerlStdIO* piPerl, FILE* pf) #endif } -char* +STDCHAR* PerlStdIOGetPtr(struct IPerlStdIO* piPerl, FILE* pf) { #ifdef USE_STDIO_PTR @@ -742,7 +742,7 @@ PerlStdIOSetCnt(struct IPerlStdIO* piPerl, FILE* pf, int n) } void -PerlStdIOSetPtr(struct IPerlStdIO* piPerl, FILE* pf, char * ptr) +PerlStdIOSetPtr(struct IPerlStdIO* piPerl, FILE* pf, STDCHAR * ptr) { #ifdef STDIO_PTR_LVALUE FILE *f = pf; diff --git a/win32/win32.c b/win32/win32.c index f8e98b9d57..5b701e93f0 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1639,7 +1639,7 @@ win32_longpath(char *path) } static void -out_of_memory() +out_of_memory(void) { if (PL_curinterp) { dTHX; @@ -2553,7 +2553,7 @@ win32_stdin(void) } DllExport FILE * -win32_stdout() +win32_stdout(void) { return (stdout); } @@ -2935,7 +2935,7 @@ win32_fstat(int fd, Stat_t *sbufptr) if (GetFileInformationByHandle((HANDLE)_get_osfhandle(fd), &bhfi)) { #if defined(WIN64) || defined(USE_LARGE_FILES) - sbufptr->st_size = (bhfi.nFileSizeHigh << 32) + bhfi.nFileSizeLow ; + sbufptr->st_size = ((__int64)bhfi.nFileSizeHigh << 32) | bhfi.nFileSizeLow ; #endif sbufptr->st_mode &= 0xFE00; if (bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY) @@ -4942,7 +4942,7 @@ win32_process_message(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) } void -win32_create_message_window_class() +win32_create_message_window_class(void) { /* create the window class for "message only" windows */ WNDCLASS wc; @@ -4958,7 +4958,7 @@ win32_create_message_window_class() } HWND -win32_create_message_window() +win32_create_message_window(void) { HWND hwnd = NULL; |