fix undefined prototypes (makes error in windows build)

This commit is contained in:
Simon Morlat 2016-12-10 18:20:30 +01:00
parent 0bbfd5673b
commit 5d73bb8232
2 changed files with 4 additions and 7 deletions

View file

@ -802,7 +802,7 @@ case "$target_os" in
;;
esac
if test "$strictness" = "yes" ; then
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-error=deprecated-declarations -Wno-error=strict-prototypes -Wno-missing-field-initializers"
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-error=deprecated-declarations -Wno-missing-field-initializers"
CFLAGS="$CFLAGS -fno-strict-aliasing"
fi

View file

@ -32,9 +32,6 @@
#endif
#ifdef _MSC_VER
#pragma warning(disable : 4996)
#else
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
@ -869,11 +866,11 @@ end:
linphone_core_manager_destroy(pauline);
}
static void is_composing_notification() {
static void is_composing_notification(void) {
_is_composing_notification(FALSE);
}
static void is_composing_notification_with_lime() {
static void is_composing_notification_with_lime(void) {
_is_composing_notification(TRUE);
}
@ -2063,7 +2060,7 @@ test_t message_tests[] = {
TEST_ONE_TAG("Real Time Text offer answer with different payload numbers (sender side)", real_time_text_message_different_text_codecs_payload_numbers_sender_side, "RTT"),
TEST_ONE_TAG("Real Time Text offer answer with different payload numbers (receiver side)", real_time_text_message_different_text_codecs_payload_numbers_receiver_side, "RTT"),
TEST_ONE_TAG("Real Time Text copy paste", real_time_text_copy_paste, "RTT"),
TEST_NO_TAG("IM Encryption Engine custom headers", chat_message_custom_headers),
TEST_NO_TAG("IM Encryption Engine custom headers", chat_message_custom_headers)
};
test_suite_t message_test_suite = {