A bunch of trivial changes to fix clang warnings.

This commit is contained in:
comex
2013-08-29 01:33:24 -04:00
parent d41eb76378
commit fd7cf5bb71
26 changed files with 20 additions and 37 deletions

View File

@ -58,7 +58,7 @@ bool cInterfaceAGL::Create(void *&window_handle)
initWithAttributes: attr];
if (fmt == nil) {
ERROR_LOG(VIDEO, "failed to create pixel format");
return NULL;
return false;
}
GLWin.cocoaCtx = [[NSOpenGLContext alloc]
@ -66,12 +66,12 @@ bool cInterfaceAGL::Create(void *&window_handle)
[fmt release];
if (GLWin.cocoaCtx == nil) {
ERROR_LOG(VIDEO, "failed to create context");
return NULL;
return false;
}
if (GLWin.cocoaWin == nil) {
ERROR_LOG(VIDEO, "failed to create window");
return NULL;
return false;
}
[window makeFirstResponder:GLWin.cocoaWin];