mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-23 14:04:19 +02:00
Remove unnecessary fanalyzer pragmas.
This commit is contained in:
parent
b52e7d1c52
commit
bb3d848537
6 changed files with 0 additions and 42 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
7
output.c
7
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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue