mirror of https://github.com/BOINC/boinc.git
Client: Fix build breaks and compiler warnings on Mac
svn path=/trunk/boinc/; revision=14889
This commit is contained in:
parent
e1689afbe8
commit
67d62d77b6
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue