diff --git a/cagebreak.c b/cagebreak.c index f08b2e9..0621127 100644 --- a/cagebreak.c +++ b/cagebreak.c @@ -698,10 +698,6 @@ main(int argc, char *argv[]) { end: if(server.modes != NULL) { -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-double-free" -#endif for(unsigned int i = 0; server.modes[i] != NULL; ++i) { free(server.modes[i]); } @@ -767,6 +763,3 @@ end: return ret; } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif diff --git a/idle_inhibit_v1.c b/idle_inhibit_v1.c index 019d47b..b408b7b 100644 --- a/idle_inhibit_v1.c +++ b/idle_inhibit_v1.c @@ -15,10 +15,6 @@ struct cg_idle_inhibitor_v1 { struct wl_listener destroy; }; -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" -#endif static void idle_inhibit_v1_check_active(struct cg_server *server) { /* As of right now, this does not check whether the inhibitor @@ -26,9 +22,6 @@ idle_inhibit_v1_check_active(struct cg_server *server) { bool inhibited = !wl_list_empty(&server->inhibitors); wlr_idle_notifier_v1_set_inhibited(server->idle, inhibited); } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif static void handle_destroy(struct wl_listener *listener, void *data) { diff --git a/message.c b/message.c index 0038fcf..3fb0a6a 100644 --- a/message.c +++ b/message.c @@ -174,10 +174,6 @@ create_message_texture(const char *string, const struct cg_output *output) { return buf; } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" // NOLINT -#endif void message_set_output(struct cg_output *output, const char *string, struct wlr_box *box, enum cg_message_anchor anchor) { @@ -312,9 +308,6 @@ message_printf(struct cg_output *output, const char *fmt, ...) { free(buffer); alarm(output->server->message_config.display_time); } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif void message_printf_pos(struct cg_output *output, struct wlr_box *position, diff --git a/output.c b/output.c index bab6082..078aebb 100644 --- a/output.c +++ b/output.c @@ -601,10 +601,6 @@ output_make_workspace_fullscreen(struct cg_output *output, int ws) { } } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" -#endif void handle_new_output(struct wl_listener *listener, void *data) { struct cg_server *server = wl_container_of(listener, server, new_output); @@ -730,6 +726,3 @@ handle_new_output(struct wl_listener *listener, void *data) { output->name, output_get_num(output), output->priority, reinit); } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif diff --git a/workspace.c b/workspace.c index 0ce0e3d..54046de 100644 --- a/workspace.c +++ b/workspace.c @@ -29,10 +29,6 @@ workspace_tile_update_view(struct cg_tile *tile, struct cg_view *view) { } } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" -#endif int full_screen_workspace_tiles(struct wlr_output_layout *layout, struct cg_workspace *workspace, @@ -55,9 +51,6 @@ full_screen_workspace_tiles(struct wlr_output_layout *layout, ++(*tiles_curr_id); return 0; } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif struct cg_workspace * full_screen_workspace(struct cg_output *output) { diff --git a/xdg_shell.c b/xdg_shell.c index cfe98bf..030fa81 100644 --- a/xdg_shell.c +++ b/xdg_shell.c @@ -53,10 +53,6 @@ xdg_decoration_handle_destroy(struct wl_listener *listener, void *data) { free(xdg_decoration); } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" -#endif static void xdg_decoration_handle_request_mode(struct wl_listener *listener, void *_data) { struct cg_xdg_decoration *xdg_decoration = @@ -67,9 +63,6 @@ xdg_decoration_handle_request_mode(struct wl_listener *listener, void *_data) { wlr_xdg_toplevel_decoration_v1_set_mode(xdg_decoration->wlr_decoration, mode); } -#if CG_HAS_FANALYZE -#pragma GCC diagnostic pop -#endif static void popup_unconstrain(struct cg_view *view, struct wlr_xdg_popup *popup) {