diff mbox series

[FFmpeg-devel] configure: Remove all C standard versions from the MSVC command line

Message ID CAB0OVGoymX0i6dzsLKgMFiWo7sz9tpb-UHBrhJYOFmFz_E2oTg@mail.gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] configure: Remove all C standard versions from the MSVC command line | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Carl Eugen Hoyos March 25, 2020, 11:05 p.m. UTC
Hi!

Attached patch removes an ugly warning shown for every file when using
clang-cl.exe.

Please comment, Carl Eugen

Comments

Martin Storsjö March 26, 2020, 10:29 a.m. UTC | #1
On Thu, 26 Mar 2020, Carl Eugen Hoyos wrote:

> Hi!
>
> Attached patch removes an ugly warning shown for every file when using
> clang-cl.exe.
>
> Please comment, Carl Eugen

LGTM

// Martin
Carl Eugen Hoyos March 26, 2020, 10:49 p.m. UTC | #2
Am Do., 26. März 2020 um 11:29 Uhr schrieb Martin Storsjö <martin@martin.st>:
>
> On Thu, 26 Mar 2020, Carl Eugen Hoyos wrote:
>
> > Hi!
> >
> > Attached patch removes an ugly warning shown for every file when using
> > clang-cl.exe.
> >
> > Please comment, Carl Eugen
>
> LGTM

Patch applied.

Thank you, Carl Eugen
diff mbox series

Patch

From 61a07641e2babbb3bc0ad6375d1cb9934f8b434a Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Wed, 25 Mar 2020 23:59:11 +0100
Subject: [PATCH] configure: Remove all C standard versions from the MSVC
 command line.

Silences a warning for every file when compiling with clang-cl.exe
---
 configure | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 18f2841765..68a81f81bb 100755
--- a/configure
+++ b/configure
@@ -4420,7 +4420,7 @@  msvc_common_flags(){
             # generic catch all at the bottom will print the original flag.
             -Wall)                ;;
             -Wextra)              ;;
-            -std=c99)             ;;
+            -std=c*)              ;;
             # Common flags
             -fomit-frame-pointer) ;;
             -g)                   echo -Z7 ;;