mirror of https://git.ffmpeg.org/ffmpeg.git
Revert "Disable warnings for casting pointers to integers, there is nothing wrong with that."
This reverts commit 5258f64a14
.
The premise of said commit (that conversions from pointer to int
are ok) is wrong: C99/C11 6.3.2.3 5: "Any pointer type may be converted
to an integer type. [...] If the result cannot be represented in the
integer type, the behavior is undefined." (C90 6.3.4 contains a similar
restriction.) So don't disable -Wpointer-to-int-cast.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
9207dc3b0d
commit
71204e8e3d
|
@ -6910,7 +6910,6 @@ check_cflags -Wwrite-strings
|
||||||
check_cflags -Wtype-limits
|
check_cflags -Wtype-limits
|
||||||
check_cflags -Wundef
|
check_cflags -Wundef
|
||||||
check_cflags -Wmissing-prototypes
|
check_cflags -Wmissing-prototypes
|
||||||
check_cflags -Wno-pointer-to-int-cast
|
|
||||||
check_cflags -Wstrict-prototypes
|
check_cflags -Wstrict-prototypes
|
||||||
check_cflags -Wempty-body
|
check_cflags -Wempty-body
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue