forked from osmocom/wireshark
-Wcast-align will warn about legitimate code.
Maybe there's some way to say "yes, I know that the pointer being cast is appropriately aligned", or maybe some platforms say "yes, I know, this is a struct sockaddr *, but those are aligned well enough for any other socket address types", in which case we might be able to turn that on by default in some cases. Change-Id: I6b8cff7ebfe27785b20adbbc2f855e859b090236 Reviewed-on: https://code.wireshark.org/review/22983 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
98ff0410c8
commit
4dc835c9c6
|
@ -557,7 +557,10 @@ else()
|
|||
-Wmissing-declarations
|
||||
#
|
||||
# A bunch of "that might not work on SPARC" code blocks
|
||||
# this one for now.
|
||||
# this one for now; some of it is code that *will* work
|
||||
# on SPARC, such as casts of "struct sockaddr *" to
|
||||
# "struct sockaddr_in *", which are required by some
|
||||
# APIs such as getifaddrs().
|
||||
#
|
||||
-Wcast-align
|
||||
#
|
||||
|
|
|
@ -727,7 +727,10 @@ AC_ARG_ENABLE(extra-compiler-warnings,
|
|||
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-declarations)
|
||||
#
|
||||
# A bunch of "that might not work on SPARC" code blocks
|
||||
# this one for now.
|
||||
# this one for now; some of it is code that *will* work
|
||||
# on SPARC, such as casts of "struct sockaddr *" to
|
||||
# "struct sockaddr_in *", which are required by some
|
||||
# APIs such as getifaddrs().
|
||||
#
|
||||
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wcast-align)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue