Skip to content

Commit

Permalink
add -pedantic to CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 authored and hoyon committed Apr 9, 2022
1 parent 1b02341 commit 50baae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RMDIR := rmdir
LN := ln
RM := rm

CFLAGS += -std=c99 -Wall -Wextra -O2 `$(PKG_CONFIG) --cflags gio-2.0 gio-unix-2.0 glib-2.0 mpv`
CFLAGS += -std=c99 -Wall -Wextra -O2 -pedantic `$(PKG_CONFIG) --cflags gio-2.0 gio-unix-2.0 glib-2.0 mpv`
LDFLAGS += `$(PKG_CONFIG) --libs gio-2.0 gio-unix-2.0 glib-2.0`

SCRIPTS_DIR := $(HOME)/.config/mpv/scripts
Expand Down
2 changes: 1 addition & 1 deletion mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ static void wakeup_handler(void *fd)
int mpv_open_cplugin(mpv_handle *mpv)
{
GMainLoop *loop;
UserData ud = {};
UserData ud = {0};
GError *error = NULL;
GDBusNodeInfo *introspection_data = NULL;
int pipe[2];
Expand Down

0 comments on commit 50baae8

Please sign in to comment.