Skip to content

Commit

Permalink
Fix some clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed May 3, 2024
1 parent 6d78789 commit 070c415
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/options.c
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/postprocessing/pcap2mjr.c
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/postprocessing/pp-options.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 070c415

Please sign in to comment.