[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW)
From: |
Andy Rushton |
Subject: |
[Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW) |
Date: |
Mon, 12 Oct 2009 16:04:43 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
I can't find any other place than here to submit bug reports and patches!
The mswindows.c file produces a compilation error with gcc 4.4.0 which
then causes the build to fail. The compilation error is due to a type
cast on the lvalue of an assignment - presumably gcc v4.4 is stricter
about disallowing this than earlier versions. I've converted it into a
type cast on the RHS of the assignment.
Here's the patch file:
diff -u3pr wget-1.9.1/src/mswindows.c wget-1.9.1-mingwPORT/src/mswindows.c
--- wget-1.9.1/src/mswindows.c 2003-10-08 01:16:43 +0100
+++ wget-1.9.1-mingwPORT/src/mswindows.c 2009-10-10 12:32:20 +0100
@@ -328,8 +328,8 @@ set_sleep_mode (DWORD mode)
DWORD rc = (DWORD)-1;
if (mod)
- (void *)_SetThreadExecutionState
- = GetProcAddress ((HINSTANCE)mod, "SetThreadExecutionState");
+ _SetThreadExecutionState
+ = (DWORD(WINAPI*)(DWORD))GetProcAddress ((HINSTANCE)mod,
"SetThreadExecutionState");
if (_SetThreadExecutionState)
{
Andy Rushton
- [Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW),
Andy Rushton <=
- Re: [Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Micah Cowan, 2009/10/12
- RE: [Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Tony Lewis, 2009/10/12
- Re: [Bug-wget] wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Micah Cowan, 2009/10/12
- [Bug-wget] Re: wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Andy Rushton, 2009/10/12
- [Bug-wget] Re: wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Andy Rushton, 2009/10/13
- [Bug-wget] Re: wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Andy Rushton, 2009/10/13
- Re: [Bug-wget] Re: wget 1.9.1 doesn't compile with gcc 4.4.0 on Windows (MinGW), Micah Cowan, 2009/10/13