mirror of https://github.com/BOINC/boinc.git
fix compile warning
This commit is contained in:
parent
f03ee95bf4
commit
4bded80762
|
@ -152,6 +152,13 @@ static void boinc_term_func() {
|
||||||
|
|
||||||
// Trap ASSERTs and TRACEs from the CRT and spew them to stderr.
|
// Trap ASSERTs and TRACEs from the CRT and spew them to stderr.
|
||||||
//
|
//
|
||||||
|
#if defined(wxUSE_GUI)
|
||||||
|
int __cdecl boinc_message_reporting(int, char *, int *retVal){
|
||||||
|
// in wxWidgets, we don't know if main has returned
|
||||||
|
(*retVal) = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
int __cdecl boinc_message_reporting(int reportType, char *szMsg, int *retVal){
|
int __cdecl boinc_message_reporting(int reportType, char *szMsg, int *retVal){
|
||||||
int n;
|
int n;
|
||||||
(*retVal) = 0;
|
(*retVal) = 0;
|
||||||
|
@ -159,10 +166,6 @@ int __cdecl boinc_message_reporting(int reportType, char *szMsg, int *retVal){
|
||||||
// can't call CRT functions after main returns
|
// can't call CRT functions after main returns
|
||||||
//
|
//
|
||||||
if (main_exited) return 0;
|
if (main_exited) return 0;
|
||||||
#if defined(wxUSE_GUI)
|
|
||||||
// in wxWidgets, we don't know if main has returned
|
|
||||||
return 0;
|
|
||||||
#else
|
|
||||||
|
|
||||||
|
|
||||||
switch(reportType){
|
switch(reportType){
|
||||||
|
@ -191,8 +194,8 @@ int __cdecl boinc_message_reporting(int reportType, char *szMsg, int *retVal){
|
||||||
|
|
||||||
}
|
}
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
Loading…
Reference in New Issue