From patchwork Sun Nov 18 03:40:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 11061 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id E06D544E0EF for ; Sun, 18 Nov 2018 05:40:35 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5C776689A7B; Sun, 18 Nov 2018 05:40:36 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it1-f194.google.com (mail-it1-f194.google.com [209.85.166.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0950F68034D for ; Sun, 18 Nov 2018 05:40:30 +0200 (EET) Received: by mail-it1-f194.google.com with SMTP id h193so2610666ita.5 for ; Sat, 17 Nov 2018 19:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SpBJhzjtMF6IV/yvrEKihhfv6oQc86dE4XxYIytULG8=; b=AUHqi1RY0DbZpGDBiXqN4KyN17TYq+VhZE+PXPx+SJuiRKZ0wfMwAAbPizzyYh/gAL +KHVSzlufcYJfKXvq1lLhgLBkbrt1u6WKiQq267ixJAgtAjayeTbelEsOxGEHtvb0tXy izNaPKqW9bNYCeoow2aA6zufexKJXElKeLtw4pBJXEkkx2xZL8avuo0NBd3I/SS5hZo8 jX7udrlIf20Hn6j9RgwedzWFdZZljMy5VkYqS29BPjZnEE5Uphqs8hI360zVWTqBJgHI qUBG0zk0AEfOvLpknzVBzqJ8fdlsxNVpOe1Vx73Y9S3GHSXbzeOrBUhbg8/4S74+qQ9r Ikww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SpBJhzjtMF6IV/yvrEKihhfv6oQc86dE4XxYIytULG8=; b=D2WJM0Zzo+oavdnE+LvJrioqbzjgvcustzt1bcvZJXMa2xtse2nblG+PzuXV7ykFWX Yjc5Aq/9fdcSOj40fszv5OKQuQTXbkiDGF2ubwZnp2wwDiWPoJhZftfL4Ko3lwsQIWjy oQrppX95TYkxLcZN7ZObvqwUjP5w5CWBbr1Plw3LBi+6kP2MUUaAauWZL1Ezh4KedBUv IlR3gHHCaRuM/4hlVoM5tSIrQ2SCq19/aGiypp1Eyf7mzJjNPLRpzkpsmDOTOA6h0hK1 TZ5qH2V3BPPGI1G+3acSRH912cVWcyNnoQLP9b1NcDTp1qf+MBQRHUWvwBjvHmyPP9LG 9XqA== X-Gm-Message-State: AGRZ1gIHElI+xydhMtfmKERuF5XIYouyrH96CX/HmzG6qA6B95K8kF+S Dv8Bu6gkXitVRNUlWoq5j37/yuuWijuZkb3WABkL4g== X-Google-Smtp-Source: AJdET5dDx5IFzyJYVnaRxgqO3n0QENJNXvLiDwQ1AulV/ZMDHk+/Km87XOgICBWtsXANYJkNXU1P4wpGES1jrD5opjA= X-Received: by 2002:a02:8a1c:: with SMTP id j28mr5811749jak.49.1542512429383; Sat, 17 Nov 2018 19:40:29 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:5f11:0:0:0:0:0 with HTTP; Sat, 17 Nov 2018 19:40:28 -0800 (PST) From: Carl Eugen Hoyos Date: Sun, 18 Nov 2018 04:40:28 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]configure: Add -Wno-char-subscripts X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" 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 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