mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-03-12 10:49:15 +02:00
Mark dp_log_fatal() as noreturn
This commit is contained in:
parent
842aa907ae
commit
5ce4818cd5
@ -5,6 +5,7 @@
|
||||
#include <sfdo-basedir.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdnoreturn.h>
|
||||
#include <wayland-util.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user