[FFmpeg-devel] [PATCH 5/5] all: fix enum definition for large values
nfxjfg at googlemail.com
Sat Oct 24 17:08:11 CEST 2015
On Sat, 24 Oct 2015 09:29:23 -0400
Ganesh Ajjanagadde <gajjanagadde at gmail.com> wrote:
> ISO C restricts enumerator values to the range of int. Thus (for instance) 0x80000000
> unfortunately does not work, and throws a warning with -Wpedantic on
> clang 3.7.
> This fixes such errors by explicitly casting as an int, doing the
> desired unsigned to signed conversion. This method works on all current
> architectures. Tested with FATE.
What is the point of trying to fix warnings with -Wpedantic? We don't
even use this flag.
More information about the ffmpeg-devel