mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add -Wmissing-prototypes
This requires functions without a prototype definition to be static. This allows to detect dead code, export less symbols and put shared functions in headers.
This commit is contained in:
parent
685a5a11a9
commit
16e5e9541b
24 changed files with 66 additions and 123 deletions
|
|
@ -461,7 +461,7 @@ static void register_cb(struct capture_context *ctx) {
|
|||
&frame_listener, ctx);
|
||||
}
|
||||
|
||||
void *vid_encode_thread(void *arg) {
|
||||
static void *vid_encode_thread(void *arg) {
|
||||
int err = 0;
|
||||
struct capture_context *ctx = arg;
|
||||
|
||||
|
|
@ -686,7 +686,7 @@ static int init_encoding(struct capture_context *ctx) {
|
|||
|
||||
struct capture_context *q_ctx = NULL;
|
||||
|
||||
void on_quit_signal(int signo) {
|
||||
static void on_quit_signal(int signo) {
|
||||
printf("\r");
|
||||
av_log(q_ctx, AV_LOG_WARNING, "Quitting!\n");
|
||||
q_ctx->quit = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue