Cleanup: quiet compiler warnings

This commit is contained in:
Campbell Barton 2023-06-06 09:34:50 +10:00
parent e6a8c45fd9
commit dd1fe31a74
3 changed files with 5 additions and 5 deletions

View File

@ -1337,7 +1337,7 @@ static void ghost_wayland_log_handler(const char *msg, va_list arg)
}
}
#ifdef WITH_GHOST_X11
#if defined(WITH_GHOST_X11) && defined(WITH_GHOST_WAYLAND_LIBDECOR)
/**
* Check if the system is running X11.
* This is not intended to be a fool-proof check (the `DISPLAY` is not validated for e.g.).
@ -1351,7 +1351,7 @@ static bool ghost_wayland_is_x11_available()
}
return false;
}
#endif /* WITH_GHOST_X11 */
#endif /* WITH_GHOST_X11 && WITH_GHOST_WAYLAND_LIBDECOR */
static GHOST_TKey xkb_map_gkey(const xkb_keysym_t sym)
{

View File

@ -1080,7 +1080,7 @@ bool node_has_hidden_sockets(bNode *node)
return false;
}
void node_set_hidden_sockets(SpaceNode *snode, bNode *node, int set)
void node_set_hidden_sockets(bNode *node, int set)
{
if (set == 0) {
LISTBASE_FOREACH (bNodeSocket *, sock, &node->inputs) {
@ -1725,7 +1725,7 @@ static int node_socket_toggle_exec(bContext *C, wmOperator * /*op*/)
for (bNode *node : snode->edittree->all_nodes()) {
if (node->flag & SELECT) {
node_set_hidden_sockets(snode, node, !hidden);
node_set_hidden_sockets(node, !hidden);
}
}

View File

@ -324,7 +324,7 @@ bool composite_node_active(bContext *C);
bool composite_node_editable(bContext *C);
bool node_has_hidden_sockets(bNode *node);
void node_set_hidden_sockets(SpaceNode *snode, bNode *node, int set);
void node_set_hidden_sockets(bNode *node, int set);
int node_render_changed_exec(bContext *, wmOperator *);
bNodeSocket *node_find_indicated_socket(SpaceNode &snode,
const float2 &cursor,