[libav-bugs] [Bug 514] New: MSVC compile of lavc/utils.c fails when treating warnings as errors

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Tue May 14 05:02:34 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=514

           Summary: MSVC compile of lavc/utils.c fails when treating
                    warnings as errors
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: wolenetz at chromium.org


Warnings are treated as errors in Chromium's usage of upstream FFmpeg, which
recently merged 759001c5 from libav.  The result is a compile break only on
windows.

How to repro from libav git HEAD:

$ which cl
/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/cl.exe
$ cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
$ ./configure --toolchain=msvc
export ECFLAGS=-WX
make libavcodec/utils.o

Observe failure:
$ make libavcodec/utils.o
CC      libavcodec/utils.o
utils.c
utils.o_converted.c
d:\src\libav\libav\libavcodec\utils.c(765) : error C2220: warning treated as
error - no 'object' file generated
d:\src\libav\libav\libavcodec\utils.c(765) : warning C4716:
'avcodec_default_reget_buffer' : must return a value
make: *** [libavcodec/utils.o] Error 1

I expect to submit a patch shortly to libav-devel@

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list