GHost: Code cleanup, prepare for strict C++ flags
This commit is contained in:
@@ -323,7 +323,9 @@ public:
|
||||
* \param grab The new grab state of the cursor.
|
||||
* \return Indication of success.
|
||||
*/
|
||||
virtual GHOST_TSuccess setCursorGrab(GHOST_TGrabCursorMode mode, GHOST_Rect *bounds, GHOST_TInt32 mouse_ungrab_xy[2]) { return GHOST_kSuccess; }
|
||||
virtual GHOST_TSuccess setCursorGrab(GHOST_TGrabCursorMode /*mode*/,
|
||||
GHOST_Rect * /*bounds*/,
|
||||
GHOST_TInt32 /*mouse_ungrab_xy*/[2]) { return GHOST_kSuccess; }
|
||||
|
||||
/** */
|
||||
virtual GHOST_TSuccess beginFullScreen() const = 0;
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
* \param interval The swap interval to use.
|
||||
* \return A boolean success indicator.
|
||||
*/
|
||||
virtual GHOST_TSuccess setSwapInterval(int interval) {
|
||||
virtual GHOST_TSuccess setSwapInterval(int /*interval*/) {
|
||||
return GHOST_kFailure;
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ getCurrentDisplaySetting(
|
||||
GHOST_TSuccess
|
||||
GHOST_DisplayManagerX11::
|
||||
setCurrentDisplaySetting(
|
||||
GHOST_TUns8 display,
|
||||
GHOST_TUns8 /*display*/,
|
||||
const GHOST_DisplaySetting& setting)
|
||||
{
|
||||
#ifdef WITH_X11_XF86VMODE
|
||||
|
||||
@@ -169,7 +169,7 @@ GHOST_TSuccess GHOST_System::beginFullScreen(const GHOST_DisplaySetting& setting
|
||||
}
|
||||
|
||||
|
||||
GHOST_TSuccess GHOST_System::updateFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow **window)
|
||||
GHOST_TSuccess GHOST_System::updateFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow ** /*window*/)
|
||||
{
|
||||
GHOST_TSuccess success = GHOST_kFailure;
|
||||
GHOST_ASSERT(m_windowManager, "GHOST_System::updateFullScreen(): invalid window manager");
|
||||
@@ -371,7 +371,7 @@ GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window **window, const
|
||||
}
|
||||
|
||||
|
||||
int GHOST_System::confirmQuit(GHOST_IWindow *window) const
|
||||
int GHOST_System::confirmQuit(GHOST_IWindow * /*window*/) const
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ const GHOST_TUns8 *GHOST_SystemPathsX11::getBinaryDir() const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void GHOST_SystemPathsX11::addToSystemRecentFiles(const char *filename) const
|
||||
void GHOST_SystemPathsX11::addToSystemRecentFiles(const char * /*filename*/) const
|
||||
{
|
||||
/* XXXXX TODO: Implementation for X11 if possible */
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ createWindow(const STR_String& title,
|
||||
}
|
||||
|
||||
#if defined(WITH_X11_XINPUT) && defined(X_HAVE_UTF8_STRING)
|
||||
static void destroyIMCallback(XIM xim, XPointer ptr, XPointer data)
|
||||
static void destroyIMCallback(XIM /*xim*/, XPointer ptr, XPointer /*data*/)
|
||||
{
|
||||
GHOST_PRINT("XIM server died\n");
|
||||
|
||||
@@ -1882,7 +1882,7 @@ GHOST_TSuccess GHOST_SystemX11::pushDragDropEvent(GHOST_TEventType eventType,
|
||||
* Basically it will not crash blender now if you have a X device that
|
||||
* is configured but not plugged in.
|
||||
*/
|
||||
int GHOST_X11_ApplicationErrorHandler(Display *display, XErrorEvent *theEvent)
|
||||
int GHOST_X11_ApplicationErrorHandler(Display * /*display*/, XErrorEvent *theEvent)
|
||||
{
|
||||
fprintf(stderr, "Ignoring Xlib error: error code %d request code %d\n",
|
||||
theEvent->error_code, theEvent->request_code);
|
||||
@@ -1891,7 +1891,7 @@ int GHOST_X11_ApplicationErrorHandler(Display *display, XErrorEvent *theEvent)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GHOST_X11_ApplicationIOErrorHandler(Display *display)
|
||||
int GHOST_X11_ApplicationIOErrorHandler(Display * /*display*/)
|
||||
{
|
||||
fprintf(stderr, "Ignoring Xlib error: error IO\n");
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ public:
|
||||
/**
|
||||
* \see GHOST_ISystem
|
||||
*/
|
||||
int toggleConsole(int action) {
|
||||
int toggleConsole(int /*action*/) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ GHOST_Window::GHOST_Window(
|
||||
GHOST_TUns32 width, GHOST_TUns32 height,
|
||||
GHOST_TWindowState state,
|
||||
const bool wantStereoVisual,
|
||||
const bool exclusive,
|
||||
const bool /*exclusive*/,
|
||||
const GHOST_TUns16 wantNumOfAASamples)
|
||||
: m_drawingContextType(GHOST_kDrawingContextTypeNone),
|
||||
m_cursorVisible(true),
|
||||
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
* Sets the progress bar value displayed in the window/application icon
|
||||
* \param progress The progress % (0.0 to 1.0)
|
||||
*/
|
||||
virtual GHOST_TSuccess setProgressBar(float progress) {
|
||||
virtual GHOST_TSuccess setProgressBar(float /*progress*/) {
|
||||
return GHOST_kFailure;
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ protected:
|
||||
* Sets the cursor grab on the window using
|
||||
* native window system calls.
|
||||
*/
|
||||
virtual GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode mode) {
|
||||
virtual GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode /*mode*/) {
|
||||
return GHOST_kSuccess;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ GHOST_IWindow *GHOST_WindowManager::getFullScreenWindow(void) const
|
||||
|
||||
|
||||
GHOST_TSuccess GHOST_WindowManager::beginFullScreen(GHOST_IWindow *window,
|
||||
bool stereoVisual)
|
||||
bool /*stereoVisual*/)
|
||||
{
|
||||
GHOST_TSuccess success = GHOST_kFailure;
|
||||
GHOST_ASSERT(window, "GHOST_WindowManager::beginFullScreen(): invalid window");
|
||||
|
||||
@@ -561,7 +561,7 @@ GHOST_WindowX11(
|
||||
}
|
||||
|
||||
#if defined(WITH_X11_XINPUT) && defined(X_HAVE_UTF8_STRING)
|
||||
static void destroyICCallback(XIC xic, XPointer ptr, XPointer data)
|
||||
static void destroyICCallback(XIC /*xic*/, XPointer ptr, XPointer /*data*/)
|
||||
{
|
||||
GHOST_PRINT("XIM input context destroyed\n");
|
||||
|
||||
@@ -1536,8 +1536,8 @@ setWindowCustomCursorShape(
|
||||
int sizey,
|
||||
int hotX,
|
||||
int hotY,
|
||||
int fg_color,
|
||||
int bg_color)
|
||||
int /*fg_color*/,
|
||||
int /*bg_color*/)
|
||||
{
|
||||
Colormap colormap = DefaultColormap(m_display, m_visualInfo->screen);
|
||||
Pixmap bitmap_pix, mask_pix;
|
||||
|
||||
Reference in New Issue
Block a user