Skip to content

Commit

Permalink
Fix some CppCheck findings
Browse files Browse the repository at this point in the history
  • Loading branch information
capehill committed Mar 11, 2022
1 parent 699286d commit 1271834
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ static void handle_events(void)
if (wait & SIGBREAKF_CTRL_C) {
puts("*** Break ***");
running = FALSE;
break;
}

if (wait & signal) {
Expand Down
4 changes: 2 additions & 2 deletions ogles2_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ static void EXEC_DropInterface(struct ExecIFace* Self, struct Interface* interfa
GENERATE_PATCH(ExecIFace, GetInterface, EXEC, ExecContext)
GENERATE_PATCH(ExecIFace, DropInterface, EXEC, ExecContext)

static struct Ogles2Context* find_context(struct OGLES2IFace *interface)
static struct Ogles2Context* find_context(const struct OGLES2IFace * const interface)
{
size_t i;
struct Ogles2Context* context = NULL;
Expand Down Expand Up @@ -1286,7 +1286,7 @@ static void checkErrors(struct Ogles2Context * context, const Ogles2Function id,
while ((err = func(context->interface)) != GL_NO_ERROR) {
const size_t next = (context->errorWritten + 1) % MAX_GL_ERRORS;
if (next == context->errorRead) {
logLine("%s: GL error buffer overload after %s", context->name, name);
logLine("%s: GL error buffer overflow after %s", context->name, name);
} else {
context->errors[next] = err;
context->errorWritten = next;
Expand Down
2 changes: 1 addition & 1 deletion warp3dnova_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ static void find_process_name(struct NovaContext * context)
find_process_name2((struct Node *)context->task, context->name);
}

static struct NovaContext* find_context(struct W3DN_Context_s* context)
static struct NovaContext* find_context(const struct W3DN_Context_s* const context)
{
size_t i;
struct NovaContext* result = NULL;
Expand Down

0 comments on commit 1271834

Please sign in to comment.