Cleanup: Unused parameters and function warnings on macOS
Pull Request: https://projects.blender.org/blender/blender/pulls/120775
This commit is contained in:
committed by
Sergey Sharybin
parent
7047715c6b
commit
2b475272a0
@@ -785,10 +785,11 @@ static bool associate_blend_poll(bContext *C)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined(__APPLE__)
|
||||
static bool assosiate_blend(bool do_register, bool all_users, char **error_msg)
|
||||
{
|
||||
const bool result = WM_platform_assosiate_set(do_register, all_users, error_msg);
|
||||
#ifdef WIN32
|
||||
# ifdef WIN32
|
||||
if ((result == false) &&
|
||||
/* For some reason the message box isn't shown in this case. */
|
||||
(all_users == false))
|
||||
@@ -797,9 +798,10 @@ static bool assosiate_blend(bool do_register, bool all_users, char **error_msg)
|
||||
"Unable to unregister file association";
|
||||
MessageBox(0, msg, "Blender", MB_OK | MB_ICONERROR);
|
||||
}
|
||||
#endif /* !WIN32 */
|
||||
# endif /* !WIN32 */
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int associate_blend_exec(bContext * /*C*/, wmOperator *op)
|
||||
{
|
||||
|
||||
@@ -51,6 +51,7 @@ bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
/* Pass. */
|
||||
UNUSED_VARS(do_register, all_users);
|
||||
#else
|
||||
{
|
||||
BPy_RunErrInfo err_info = {};
|
||||
|
||||
Reference in New Issue
Block a user