diff --git a/src/dulcepan.h b/src/dulcepan.h index 46941e5..217ca57 100644 --- a/src/dulcepan.h +++ b/src/dulcepan.h @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -226,7 +227,7 @@ void dp_select_whole(struct dp_selection *selection, struct dp_output *output); void dp_save(struct dp_state *state); void dp_log_error(const char *fmt, ...); -void dp_log_fatal(const char *fmt, ...); +noreturn void dp_log_fatal(const char *fmt, ...); void *dp_zalloc(size_t size); char *dp_strdup(const char *str); diff --git a/src/save.c b/src/save.c index 3b47f49..00d5dd7 100644 --- a/src/save.c +++ b/src/save.c @@ -59,7 +59,6 @@ static pixman_format_code_t shm_to_pixman(enum wl_shm_format shm_format) { } } dp_log_fatal("failed to get a matching Pixman format for wl_shm format"); - return 0; // Unreachable, actually } static void write_png(FILE *fp, pixman_image_t *image, int width, int height, int level) {