Skip to content
Snippets Groups Projects
Commit 17ff449a authored by callum_linden's avatar callum_linden
Browse files

Supress error after Xcode 7 update: error: null passed to a callee that...

Supress error after Xcode 7 update: error: null passed to a callee that requires a non-null argument
parent 1c94732b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment