Client: Fix build breaks and compiler warnings on Mac

svn path=/trunk/boinc/; revision=14889
This commit is contained in:
Charlie Fenton 2008-03-11 05:31:07 +00:00
parent e1689afbe8
commit 67d62d77b6
5 changed files with 9 additions and 3 deletions

View File

@ -2219,8 +2219,11 @@ Charlie Mar 10 2008
cs_statefile.C
clientgui/
MainDocument.cpp
ViewProjectsGrid.cpp
ViewWorkGrid.cpp
lib/
coproc.C
util.C
mac_build/
boinc.xcodeproj/
project.pbxproj

View File

@ -504,7 +504,7 @@ void CViewProjectsGrid::UpdateSelection() {
PROJECT* project = NULL;
CMainDocument* pDoc = wxGetApp().GetDocument();
int i, n;
bool wasSuspended, wasNoNewWork;
bool wasSuspended=false, wasNoNewWork=false;
wxASSERT(pDoc);
wxASSERT(wxDynamicCast(pDoc, CMainDocument));

View File

@ -409,7 +409,7 @@ void CViewWorkGrid::UpdateSelection() {
PROJECT* project = NULL;
CMainDocument* pDoc = wxGetApp().GetDocument();
int i, n;
bool wasSuspended, all_same_project=false;
bool wasSuspended=false, all_same_project=false;
string first_project_url;
wxASSERT(NULL != pDoc);

View File

@ -21,6 +21,7 @@
#include <string.h>
#include <stdlib.h>
#ifdef _WIN32
#elif defined(__APPLE__)
#else
#include <dlfcn.h>
#endif
@ -62,7 +63,8 @@ void COPROC_CUDA::get(COPROCS& coprocs) {
if(!__cudaGetDeviceCount) return;
__cudaGetDeviceProperties = (void(*)(cudaDeviceProp*, int)) GetProcAddress( cudalib, "cudaGetDeviceProperties" );
if (!__cudaGetDeviceProperties) return;
#elif defined(__APPLE__)
return;
#else
void *cudalib = dlopen ("libcudart.so", RTLD_NOW );
if(!cudalib) return;

View File

@ -33,6 +33,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <signal.h>
#include <sys/resource.h>
#include <errno.h>
#include <string>