Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
08ff74f6
Commit
08ff74f6
authored
Oct 19, 2016
by
Simon Morlat
Browse files
repair compilation for linux
parent
1eaeb178
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
CMakeLists.txt
CMakeLists.txt
+2
-2
configure.ac
configure.ac
+2
-5
src/grammars/Makefile.am
src/grammars/Makefile.am
+1
-1
src/transaction.c
src/transaction.c
+1
-1
No files found.
CMakeLists.txt
View file @
08ff74f6
...
...
@@ -194,10 +194,10 @@ else()
endif
()
if
(
ENABLE_STRICT
)
list
(
APPEND STRICT_OPTIONS_CPP
"-Werror"
"-Wextra"
"-Wno-unused-parameter"
"-Wno-error=unknown-pragmas"
"-Wuninitialized"
"-fno-strict-aliasing"
)
list
(
APPEND STRICT_OPTIONS_C
"-Wdeclaration-after-statement"
"-Wstrict-prototypes"
)
list
(
APPEND STRICT_OPTIONS_C
"-Wdeclaration-after-statement"
"-Wstrict-prototypes
-Wno-missing-field-initializers
"
)
endif
()
# this warning is generated by antlr so ignore it for now
list
(
APPEND STRICT_OPTIONS_C
"-Wno-strict-prototypes"
)
list
(
APPEND STRICT_OPTIONS_C
"-Wno-strict-prototypes"
"-Wno-error=sign-compare"
)
endif
()
if
(
STRICT_OPTIONS_CPP
)
list
(
REMOVE_DUPLICATES STRICT_OPTIONS_CPP
)
...
...
configure.ac
View file @
08ff74f6
...
...
@@ -128,15 +128,12 @@ case "$target_os" in
esac
if test "$strict" = "true"; then
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -Wuninitialized -Wno-error=strict-prototypes"
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -Wuninitialized -Wno-error=strict-prototypes
-Wno-missing-field-initializers
"
fi
dnl because of antlr3 we must accept a few warnings...
dnl more portable for the moment
LESS_STRICT_OPTIONS=
dnl LESS_STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=unused-function \
dnl -Wno-error=uninitialized -Wno-error=unused-variable \
dnl -Wno-error=unused-but-set-variable "
LESS_STRICT_OPTIONS="-Wno-error=sign-compare"
AC_SUBST(STRICT_OPTIONS)
AC_SUBST(STRICT_OPTIONS_CC)
...
...
src/grammars/Makefile.am
View file @
08ff74f6
noinst_LTLIBRARIES
=
libbellesip_generated.la
libbellesip_generated_la_CFLAGS
=
$(LIBBELLESIP_CFLAGS)
$(ANTLR_CFLAGS)
$(STRICT_OPTIONS)
$(STRICT_OPTIONS_CC)
libbellesip_generated_la_CFLAGS
=
$(LIBBELLESIP_CFLAGS)
$(ANTLR_CFLAGS)
$(STRICT_OPTIONS)
$(STRICT_OPTIONS_CC)
$(LESS_STRICT_OPTIONS)
nodist_libbellesip_generated_la_SOURCES
=
\
...
...
src/transaction.c
View file @
08ff74f6
...
...
@@ -97,7 +97,7 @@ static int client_transaction_on_call_repair_timer(belle_sip_transaction_t *t) {
static
void
on_channel_state_changed
(
belle_sip_channel_listener_t
*
l
,
belle_sip_channel_t
*
chan
,
belle_sip_channel_state_t
state
){
belle_sip_transaction_t
*
t
=
(
belle_sip_transaction_t
*
)
l
;
belle_sip_io_error_event_t
ev
;
const
belle_sip_timer_config_t
*
timercfg
;
const
belle_sip_timer_config_t
*
timercfg
=
NULL
;
belle_sip_transaction_state_t
tr_state
=
belle_sip_transaction_get_state
((
belle_sip_transaction_t
*
)
t
);
belle_sip_message
(
"transaction [%p] channel state changed to [%s]"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment