Hi!

On systems with signed char, the compiler cannot distinguish between
(intended) int8_t used as subscript and unintended char, therefore the
warning doesn't help.

Please comment, Carl Eugen
From dbe60ba171e5ab207b8abda44a9d3236f3079c01 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffm...@gmail.com>
Date: Sun, 18 Nov 2018 04:32:07 +0100
Subject: [PATCH] configure: Add -Wno-char-subscripts.

Silences many warnings on systems with signed char where
the compiler cannot distinguish between char and int8_t.
---
 configure |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 9bc4cf3..ac06f11 100755
--- a/configure
+++ b/configure
@@ -6506,6 +6506,7 @@ check_disable_warning -Wno-format-zero-length
 check_disable_warning -Wno-pointer-sign
 check_disable_warning -Wno-unused-const-variable
 check_disable_warning -Wno-bool-operation
+check_disable_warning -Wno-char-subscripts
 
 check_disable_warning_headers(){
     warning_flag=-W${1#-Wno-}
-- 
1.7.10.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to