Bug #47867 compiler warning _WIN32_WINNT macro redefinition
Submitted: 6 Oct 2009 15:56 Modified: 5 Jan 2010 11:45
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.39 OS:Windows
Assigned to: Magnus Blåudd CPU Architecture:Any

[6 Oct 2009 15:56] Magnus Blåudd
Description:
safe_process_win.cc: 57
	C4005: '_WIN32_WINNT' : macro redefinition
src/random.cpp: 30
	C4005: '_WIN32_WINNT' : macro redefinition
../extra/yassl/taocrypt/src/random.cpp: 30
	C4005: '_WIN32_WINNT' : macro redefinition
../extra/yassl/taocrypt/src/random.cpp: 30
	C4005: '_WIN32_WINNT' : macro redefinition
../extra/yassl/taocrypt/src/random.cpp: 30
	C4005: '_WIN32_WINNT' : macro redefinition

How to repeat:
.

Suggested fix:
Remove the defines of _WIN32_WINNT scattered in the code, we define _WIN32_WINNT 0x0501 in the cmake files and that is enough.
[6 Oct 2009 16:11] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/85936
[3 Nov 2009 17:08] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/89177
[4 Nov 2009 9:24] Bugs System
Pushed into 5.1.41 (revid:joro@sun.com-20091104092152-qz96bzlf2o1japwc) (version source revid:magnus.blaudd@sun.com-20091103170719-6b64sjnivsiyz6xy) (merge vers: 5.1.41) (pib:13)
[5 Nov 2009 13:55] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/89470
[11 Nov 2009 6:50] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20091110093407-rw5g8dys2baqkt67) (version source revid:alik@sun.com-20091109080109-7dxapd5y5pxlu08w) (merge vers: 6.0.14-alpha) (pib:13)
[11 Nov 2009 6:58] Bugs System
Pushed into 5.5.0-beta (revid:alik@sun.com-20091109115615-nuohp02h8mdrz8m2) (version source revid:alik@sun.com-20091105145905-qen477qntdv20g5o) (merge vers: 5.5.0-beta) (pib:13)
[18 Dec 2009 10:38] Bugs System
Pushed into 5.1.41-ndb-7.1.0 (revid:jonas@mysql.com-20091218102229-64tk47xonu3dv6r6) (version source revid:jonas@mysql.com-20091218095730-26gwjidfsdw45dto) (merge vers: 5.1.41-ndb-7.1.0) (pib:15)
[18 Dec 2009 10:54] Bugs System
Pushed into 5.1.41-ndb-6.2.19 (revid:jonas@mysql.com-20091218100224-vtzr0fahhsuhjsmt) (version source revid:jonas@mysql.com-20091217101452-qwzyaig50w74xmye) (merge vers: 5.1.41-ndb-6.2.19) (pib:15)
[18 Dec 2009 11:08] Bugs System
Pushed into 5.1.41-ndb-6.3.31 (revid:jonas@mysql.com-20091218100616-75d9tek96o6ob6k0) (version source revid:jonas@mysql.com-20091217154335-290no45qdins5bwo) (merge vers: 5.1.41-ndb-6.3.31) (pib:15)
[18 Dec 2009 11:22] Bugs System
Pushed into 5.1.41-ndb-7.0.11 (revid:jonas@mysql.com-20091218101303-ga32mrnr15jsa606) (version source revid:jonas@mysql.com-20091218064304-ezreonykd9f4kelk) (merge vers: 5.1.41-ndb-7.0.11) (pib:15)
[5 Jan 2010 11:45] MC Brown
Minor internal warning change, no changelog entry needed