From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 47B19402BB for ; Fri, 21 Jan 2022 01:41:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B16D768B22A; Fri, 21 Jan 2022 03:41:33 +0200 (EET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5831368B144 for ; Fri, 21 Jan 2022 03:41:27 +0200 (EET) Received: by mail-pj1-f42.google.com with SMTP id b1-20020a17090a990100b001b14bd47532so7784621pjp.0 for ; Thu, 20 Jan 2022 17:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:in-reply-to:references:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=C1MYgMt1sX3YOrirIe0q/rbV8JiDwjuPUpz0q6IhOCM=; b=h9Ef1zPGDTr7/nKcT4zOnBbo4G1aaupJJY3IV4vg2963HrLPes3gHZMVvU7UOCWqqj y8OVXr+NGzPR5X38zjtHsOEaAlCFEnkNYmg//JcGv3MiN/jQM4CGNrZlLxq28x1S6LaD bZAX4PaL/mOsHvWwdQY/1gzuGz4Oq7tHqfcZJwprpTICRPKJ6nNF8xSx8fEDiY3myNUf Y4pTeJMDpeTXff7aI7GOmfu/kZ/gE+slKiUpNdgBe0TJPsPMHLwiebcu+pRx1J3H72xt f1yowrSTswrRgSbcp77vjQMTYwReWY0WKhOWiIBkl/hO/lc7MDJfRbRpJ6yqa/XNuRgC s2Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:in-reply-to:references:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=C1MYgMt1sX3YOrirIe0q/rbV8JiDwjuPUpz0q6IhOCM=; b=D7R9Lj8IdSirVPTKjBpIW3rS1EIQ3rwRyVHf7ffXhc+j+YYJNOcveuhelHxdbwVXlb ACbXbBMM6MAiykYi7pBKPPzFHsUGLyMN+ZhVg+KU54lT7Flwt1NAtB3NxKMNIvilpdOt BQd7VEB4CVXGPXGLWapFcuJ4DufG+S5wkpF4QAwZJZNUQYT/y9c31Lk0PT3B9dTy4YET LOp0hoUfKoyYVJXpPqPi/EY1ar9nucF5dmCL7AgFtbbAKnuDs/MYImV3+f1DnXsudNOn eu4M9XPgHJqhK+3LB2Ok6v20HSEVdDWPo3XFdXm55KKrVOP+8Lowx9mfRMmkJg/GEiq0 StvQ== X-Gm-Message-State: AOAM532Z2SV33C4yfkhSc6QzSHiGRMz/4ohFlxYBpyJfeZ7/DGyCEaTQ 9dEcPvyKcM7shnhfjWx1ub+nNrKl5Dc= X-Google-Smtp-Source: ABdhPJwaYAwqrWz6gqV52oG4Q0DlKUIE+DVyHcQrLgwUy0Twn8P/UQso6oMOJ8IWA7jsITy6A8Zo0w== X-Received: by 2002:a17:902:da81:b0:14a:8fda:e321 with SMTP id j1-20020a170902da8100b0014a8fdae321mr1533288plx.96.1642729285378; Thu, 20 Jan 2022 17:41:25 -0800 (PST) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id j3sm9495402pjs.1.2022.01.20.17.41.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jan 2022 17:41:24 -0800 (PST) From: softworkz X-Google-Original-From: softworkz Message-Id: In-Reply-To: References: Date: Fri, 21 Jan 2022 01:41:24 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v2] libavutil/tests/md5: Avoid warnings X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Cc: softworkz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: softworkz Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. Signed-off-by: softworkz --- libavutil/tests/md5: Avoid warnings Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-20%2Fsoftworkz%2Fsubmit_md5-v2 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-20/softworkz/submit_md5-v2 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/20 Range-diff vs v1: 1: 3910d81fa1 ! 1: 4723054463 libavutil/tests/md5: Avoid warnings @@ libavutil/tests/md5.c: int main(void) { uint8_t md5val[16]; int i; -+ -+#if defined(__clang__) && defined(__clang_major__) && __clang_major__ < 4 - volatile uint8_t in[1000]; // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849 +- volatile uint8_t in[1000]; // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849 - // FIXME remove volatile once it has been fixed and all fate clients are updated -+#else -+ uint8_t in[1000]; ++ ++#if 1 || defined(__clang__) && defined(__clang_major__) && __clang_major__ < 4 ++ volatile // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849 +#endif ++ uint8_t in[1000]; for (i = 0; i < 1000; i++) in[i] = i * i; libavutil/tests/md5.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavutil/tests/md5.c b/libavutil/tests/md5.c index 42e4538e0a..cca63d6507 100644 --- a/libavutil/tests/md5.c +++ b/libavutil/tests/md5.c @@ -33,8 +33,11 @@ int main(void) { uint8_t md5val[16]; int i; - volatile uint8_t in[1000]; // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849 - // FIXME remove volatile once it has been fixed and all fate clients are updated + +#if 1 || defined(__clang__) && defined(__clang_major__) && __clang_major__ < 4 + volatile // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849 +#endif + uint8_t in[1000]; for (i = 0; i < 1000; i++) in[i] = i * i; base-commit: 7512293cf912c65fa657eab680afd5e18fd47603 -- ffmpeg-codebot _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".