diff --git a/configure.ac b/configure.ac index a09ad9ee40..d1376c039d 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,8 @@ case "$CC" in # Specific clang flags CFLAGS="$CFLAGS \ -Wno-cast-align \ - -Wno-initializer-overrides" + -Wno-initializer-overrides \ + -Wno-missing-noreturn" ;; cc*) CFLAGS="$CFLAGS \ diff --git a/src/options.c b/src/options.c index 06a3d65662..4c67dabe2b 100644 --- a/src/options.c +++ b/src/options.c @@ -56,7 +56,7 @@ gboolean janus_options_parse(janus_options *options, int argc, char *argv[]) { { "token-auth-secret", 0, 0, G_OPTION_ARG_STRING, &options->token_auth_secret, "Secret to verify HMAC-signed tokens with, to be used with -A", "randomstring" }, { "event-handlers", 'e', 0, G_OPTION_ARG_NONE, &options->event_handlers, "Enable event handlers", NULL }, { "no-webrtc-encryption", 'w', 0, G_OPTION_ARG_NONE, &options->no_webrtc_encryption, "Disable WebRTC encryption, so no DTLS or SRTP (only for debugging!)", NULL }, - { NULL }, + { NULL, 0, 0, 0, NULL, NULL, NULL }, }; /* Parse the command-line arguments */ diff --git a/src/postprocessing/pcap2mjr.c b/src/postprocessing/pcap2mjr.c index d468d28ef5..9338ff4baf 100644 --- a/src/postprocessing/pcap2mjr.c +++ b/src/postprocessing/pcap2mjr.c @@ -98,7 +98,7 @@ static GOptionEntry opt_entries[] = { { "ssrc", 's', 0, G_OPTION_ARG_INT64, &ssrc64, "SSRC of the packets in the pcap file to save (pass 0 to autodetect)", NULL }, { "warnings", 'w', 0, G_OPTION_ARG_NONE, &show_warnings, "Show warnings for skipped packets (e.g., not RTP or wrong SSRC)", NULL }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &paths, NULL, NULL }, - { NULL }, + { NULL, 0, 0, 0, NULL, NULL, NULL }, }; /* Main Code */ diff --git a/src/postprocessing/pp-options.c b/src/postprocessing/pp-options.c index 515a86a8e4..54813ed3be 100644 --- a/src/postprocessing/pp-options.c +++ b/src/postprocessing/pp-options.c @@ -38,7 +38,7 @@ gboolean janus_pprec_options_parse(janus_pprec_options *options, int argc, char { "restamp-packets", 'c', 0, G_OPTION_ARG_INT, &options->restamp_packets, "Number of packets used for calculating moving average latency for timestamp correction (default=10)", NULL }, { "restamp-min-th", 'n', 0, G_OPTION_ARG_INT, &options->restamp_min_th, "Minimum latency of moving average to reach before starting to correct timestamps. (default=500)", NULL }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &options->paths, NULL, NULL }, - { NULL }, + { NULL, 0, 0, 0, NULL, NULL, NULL }, }; /* Parse the command-line arguments */