Supress error after Xcode 7 update: error: null passed to a callee that requires a non-null argument
parent
1c94732ba1
commit
17ff449ae6
|
|
@ -239,7 +239,11 @@ attributedStringInfo getSegments(NSAttributedString *str)
|
|||
{
|
||||
[glContext setValues:(const GLint*)1 forParameter:NSOpenGLCPSwapInterval];
|
||||
} else {
|
||||
[glContext setValues:(const GLint*)0 forParameter:NSOpenGLCPSwapInterval];
|
||||
// supress this error after move to Xcode 7:
|
||||
// error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull]
|
||||
// Tried using ObjC 'nonnull' keyword as per SO article but didn't build
|
||||
GLint swapInterval=0;
|
||||
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
|
||||
}
|
||||
|
||||
mOldResize = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue