mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032057: Coding Rules - eliminate CLang warning -Wunused-parameter when targeting iOS
Cocoa_Window::Cocoa_Window()/OpenGl_Context::SetSwapInterval() have been corrected to suppress warning.
This commit is contained in:
parent
ff6122e008
commit
92cc34d702
@ -111,7 +111,7 @@ Cocoa_Window::Cocoa_Window (const Standard_CString theTitle,
|
|||||||
myYBottom (thePxTop + thePxHeight)
|
myYBottom (thePxTop + thePxHeight)
|
||||||
{
|
{
|
||||||
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
||||||
//
|
(void )theTitle;
|
||||||
#else
|
#else
|
||||||
if (thePxWidth <= 0 || thePxHeight <= 0)
|
if (thePxWidth <= 0 || thePxHeight <= 0)
|
||||||
{
|
{
|
||||||
|
@ -787,7 +787,7 @@ Standard_Boolean OpenGl_Context::SetSwapInterval (const Standard_Integer theInte
|
|||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
#elif defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
#elif defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
||||||
//
|
(void )theInterval; // vsync cannot be turned OFF on iOS
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
if (::CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &theInterval) == kCGLNoError)
|
if (::CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &theInterval) == kCGLNoError)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user