Skip to content

Commit fe0c6a6

Browse files
committed
Do not allow failure for Windows Travis builds anymore
1 parent 730c62a commit fe0c6a6

File tree

5 files changed

+17
-27
lines changed

5 files changed

+17
-27
lines changed

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,6 @@ matrix:
150150
env: CONFIGURATION="Release" CMAKE_TOOLSET=v141_xp CMAKE_GENERATOR="Visual Studio 15 2017"
151151
- os: windows
152152
env: CONFIGURATION="Release" CMAKE_TOOLSET="" CMAKE_GENERATOR="Ninja"
153-
# As long as Windows is still experimental on Travis CI, allow failures
154-
allow_failures:
155-
- os: windows
156-
env: CONFIGURATION="Debug" CMAKE_TOOLSET=v141_xp CMAKE_GENERATOR="Visual Studio 15 2017"
157-
- os: windows
158-
env: CONFIGURATION="Debug" CMAKE_TOOLSET="" CMAKE_GENERATOR="Ninja"
159-
- os: windows
160-
env: CONFIGURATION="Release" CMAKE_TOOLSET=v141_xp CMAKE_GENERATOR="Visual Studio 15 2017"
161-
- os: windows
162-
env: CONFIGURATION="Release" CMAKE_TOOLSET="" CMAKE_GENERATOR="Ninja"
163153
fast_finish: true
164154

165155
before_install:

code/mod_table/mod_table.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,10 @@ void mod_table_reset() {
557557
Disable_built_in_translations = false;
558558
Weapon_shockwaves_respect_huge = false;
559559
Using_in_game_options = false;
560-
Arc_color_damage_p1 = std::make_tuple(64, 64, 225);
561-
Arc_color_damage_p2 = std::make_tuple(128, 128, 255);
562-
Arc_color_damage_s1 = std::make_tuple(200, 200, 255);
563-
Arc_color_emp_p1 = std::make_tuple(64, 64, 5);
564-
Arc_color_emp_p2 = std::make_tuple(128, 128, 10);
565-
Arc_color_emp_s1 = std::make_tuple(255, 255, 10);
560+
Arc_color_damage_p1 = std::make_tuple(static_cast<ubyte>(64), static_cast<ubyte>(64), static_cast<ubyte>(225));
561+
Arc_color_damage_p2 = std::make_tuple(static_cast<ubyte>(128), static_cast<ubyte>(128), static_cast<ubyte>(255));
562+
Arc_color_damage_s1 = std::make_tuple(static_cast<ubyte>(200), static_cast<ubyte>(200), static_cast<ubyte>(255));
563+
Arc_color_emp_p1 = std::make_tuple(static_cast<ubyte>(64), static_cast<ubyte>(64), static_cast<ubyte>(5));
564+
Arc_color_emp_p2 = std::make_tuple(static_cast<ubyte>(128), static_cast<ubyte>(128), static_cast<ubyte>(10));
565+
Arc_color_emp_s1 = std::make_tuple(static_cast<ubyte>(255), static_cast<ubyte>(255), static_cast<ubyte>(10));
566566
}

code/network/psnet2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,17 +1993,17 @@ unsigned int psnet_ras_status()
19931993
return INADDR_ANY;
19941994
}
19951995

1996-
pRasEnumConnections = (DWORD (__stdcall *)(LPRASCONN, LPDWORD, LPDWORD))GetProcAddress(ras_handle, "RasEnumConnectionsA");
1996+
pRasEnumConnections = (DWORD (__stdcall *)(LPRASCONN, LPDWORD, LPDWORD))(void*)GetProcAddress(ras_handle, "RasEnumConnectionsA");
19971997
if (!pRasEnumConnections) {
19981998
FreeLibrary( ras_handle );
19991999
return INADDR_ANY;
20002000
}
2001-
pRasGetConnectStatus = (DWORD (__stdcall *)(HRASCONN, LPRASCONNSTATUS))GetProcAddress(ras_handle, "RasGetConnectStatusA");
2001+
pRasGetConnectStatus = (DWORD (__stdcall *)(HRASCONN, LPRASCONNSTATUS))(void*)GetProcAddress(ras_handle, "RasGetConnectStatusA");
20022002
if (!pRasGetConnectStatus) {
20032003
FreeLibrary( ras_handle );
20042004
return INADDR_ANY;
20052005
}
2006-
pRasGetProjectionInfo = (DWORD (__stdcall *)(HRASCONN, RASPROJECTION, LPVOID, LPDWORD))GetProcAddress(ras_handle, "RasGetProjectionInfoA");
2006+
pRasGetProjectionInfo = (DWORD (__stdcall *)(HRASCONN, RASPROJECTION, LPVOID, LPDWORD))(void*)GetProcAddress(ras_handle, "RasGetProjectionInfoA");
20072007
if (!pRasGetProjectionInfo) {
20082008
FreeLibrary( ras_handle );
20092009
return INADDR_ANY;

code/network/stand_gui.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ char title_str[512];
111111
static HWND Multi_gen_dialog = NULL; // the dialog itself
112112

113113
// dialog proc for this dialog
114-
BOOL CALLBACK std_gen_dialog_proc(HWND /*hwndDlg*/, UINT uMsg, WPARAM /*wParam*/, LPARAM /*lParam*/)
114+
INT_PTR CALLBACK std_gen_dialog_proc(HWND /*hwndDlg*/, UINT uMsg, WPARAM /*wParam*/, LPARAM /*lParam*/)
115115
{
116116
switch(uMsg){
117117
case WM_INITDIALOG:
@@ -483,7 +483,7 @@ int std_connect_lindex_to_npindex(int index)
483483
}
484484

485485
// message handler for the connect tab
486-
BOOL CALLBACK connect_proc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
486+
INT_PTR CALLBACK connect_proc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
487487
{
488488
switch(uMsg){
489489
// initialize the dialog
@@ -1016,7 +1016,7 @@ HTREEITEM std_multi_get_goal_item(char *goal_string,int type)
10161016
}
10171017

10181018
// message handler for the multiplayer tab
1019-
BOOL CALLBACK multi_proc(HWND hwndDlg,UINT uMsg,WPARAM /*wParam*/,LPARAM lParam)
1019+
INT_PTR CALLBACK multi_proc(HWND hwndDlg,UINT uMsg,WPARAM /*wParam*/,LPARAM lParam)
10201020
{
10211021
switch(uMsg){
10221022
// initialize the page
@@ -1271,7 +1271,7 @@ int std_pinfo_player_is_active(net_player *p)
12711271
}
12721272

12731273
// message handler for the player info tab
1274-
BOOL CALLBACK player_info_proc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
1274+
INT_PTR CALLBACK player_info_proc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
12751275
{
12761276
int player_num;
12771277
char callsign[40];
@@ -1453,7 +1453,7 @@ void std_gs_init_godstuff_controls()
14531453
}
14541454

14551455
// message handler for the godstuff tab
1456-
BOOL CALLBACK godstuff_proc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
1456+
INT_PTR CALLBACK godstuff_proc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
14571457
{
14581458
switch (uMsg)
14591459
{
@@ -1607,7 +1607,7 @@ void std_debug_init_debug_controls(HWND hwndDlg)
16071607
}
16081608

16091609
// message handler for the godstuff tab
1610-
BOOL CALLBACK debug_proc(HWND hwndDlg,UINT uMsg,WPARAM /*wParam*/,LPARAM lParam)
1610+
INT_PTR CALLBACK debug_proc(HWND hwndDlg,UINT uMsg,WPARAM /*wParam*/,LPARAM lParam)
16111611
{
16121612
switch(uMsg){
16131613
// initialize the dialog
@@ -2343,7 +2343,7 @@ static void standalone_do_systray(int mode)
23432343
}
23442344

23452345
// just like the osapi version for the nonstandalone mode of FreeSpace
2346-
DWORD standalone_process(WORD /*lparam*/)
2346+
DWORD standalone_process(LPVOID /*lparam*/)
23472347
{
23482348
MSG msg;
23492349

code/osapi/osregistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace
130130
}
131131
userSIDInitialized = true;
132132
}
133-
#if _MSC_VER >= 1400
133+
#if !defined(_MSC_VER) || _MSC_VER >= 1400
134134
if (userSIDValid)
135135
{
136136
if (needsWOW64())

0 commit comments

Comments
 (0)