Skip to content

Commit

Permalink
Fix optimized build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed May 8, 2024
1 parent e858349 commit 7a05ac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
- '*'

env:
CFLAGS: -Werror
CXXFLAGS: -Werror
CFLAGS: -Werror -O2
CXXFLAGS: -Werror -O2
DEBIAN_FRONTEND: noninteractive

jobs:
Expand Down
2 changes: 1 addition & 1 deletion src/ipc/ipc_proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ipc_proc_t* ipc_proc_start(const char* const args[])
#endif
*/

ipc_proc_t* const proc = (ipc_proc_t*)calloc(1, sizeof(ipc_proc_t));
ipc_proc_t* volatile const proc = (ipc_proc_t*)calloc(1, sizeof(ipc_proc_t));
if (proc == NULL)
{
fprintf(stderr, "[ipc] ipc_proc_start failed: out of memory\n");
Expand Down
2 changes: 0 additions & 2 deletions src/ui-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ static void lv2ui_uris_cleanup(LV2UI_URIs* const uiuris)
{
for (uint32_t i = 0; i < uiuris->max_urid; ++i)
free(uiuris->uris[i]);

free(uiuris);
}

static void lv2ui_write_function(LV2UI_Controller controller,
Expand Down

0 comments on commit 7a05ac0

Please sign in to comment.