From patchwork Thu Aug 25 13:06:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 291 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp892818vsd; Thu, 25 Aug 2016 06:06:58 -0700 (PDT) X-Received: by 10.28.23.141 with SMTP id 135mr31239697wmx.100.1472130416874; Thu, 25 Aug 2016 06:06:56 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id du17si13613023wjb.55.2016.08.25.06.06.53; Thu, 25 Aug 2016 06:06:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F3F37689B30; Thu, 25 Aug 2016 16:06:48 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9DCB6689AD1 for ; Thu, 25 Aug 2016 16:06:41 +0300 (EEST) Received: by mail-qk0-f196.google.com with SMTP id v123so3535511qkh.3 for ; Thu, 25 Aug 2016 06:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=GjiM1h5mTVgHju9A5lvM0c0eGYZo4QS/o8X5lblZNrY=; b=IA8744azQjEqWZztH7n4kupwP6n9PpOTLhqfKAD8wGlqlwPxT3WteYy+OJROxcf2Dj nys5N02qN6+2iEDsBCIMJrp87sLM4RDMTqJPy1J4WYQKpbIkgeGpIapN3u8UbVSzRZv2 WJWtneoYPY+IMpw0v0qvRl30eca7SUkYQXVTawsf2bqh5Q9e2UjIIbbyYBzh+jmR69L0 EVljWh/QJYmMlRQRLc9bEAV498SIlS5cVKQMR0aKpSQ6Bz7zTX1bzqP57vNV4v7kONAg +2V4N9N5Q06UGLi9Gf7dBT/OQWECRxmOZbCjW0IZ8zYQwLIxIwNKQgf1m+OEgeTFBlxJ SSLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GjiM1h5mTVgHju9A5lvM0c0eGYZo4QS/o8X5lblZNrY=; b=f4L3zJw/NNfEMTh08N1BlP6r+tXJfSKdofCADSHlqQc1SdKVQIpKjuarWUn4GNU7AR 1ubYJOmYRtn3yqEaLStGvR8Z4E5GqXYsONOFHp6hQX7BHKfec2wbZNOlyfnmlKC1od0U azM7w0qBI3Uf/tUYn7rtEB69z4iigIDEbnDLviom9ygRhYyneLj8oQsXJ86yjFMBtevS qfH0SQXsCL9WvmGGS65SAHHZC0uCAshelN3hmAB7lXtz+3XKeewrfhweMY8UO3RZ0xgC WvvzYSAjXIc8uQWSxY4EKOqmLpLiP14Cdl/83x2Dd7imfI4D52e7mtq47+goTDBC7DNT kh0g== X-Gm-Message-State: AE9vXwOEnRj7b9onuiFCn0oRxaIpabcyH+Hyvgmi7V2vqo32BTuB0w1uOIw7khv6OV9jtA4swnZcRobfcYd+7g== X-Received: by 10.55.49.144 with SMTP id x138mr10143078qkx.227.1472130403184; Thu, 25 Aug 2016 06:06:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.56.42 with HTTP; Thu, 25 Aug 2016 06:06:42 -0700 (PDT) From: Steven Liu Date: Thu, 25 Aug 2016 21:06:42 +0800 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH 2/2] Fix audiomatch complie warning 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" Making sure bestpos is initialized to zero to prevent gcc from kvetching. It's harmless (although it's not obvious that it's harmless) from code inspection: tests/audiomatch.c: In function ‘main’: tests/audiomatch.c:40: warning: ‘bestpos’ may be used uninitialized in this function Thanks to Moritz Barsnick for first bringing this to the attention. Signed-off-by: LiuQi --- tests/audiomatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/tests/audiomatch.c b/tests/audiomatch.c index 9752f68..ca56df0 100644 --- a/tests/audiomatch.c +++ b/tests/audiomatch.c @@ -37,7 +37,7 @@ int main(int argc, char **argv){ FILE *f[2]; int i, pos; int siglen, datlen; - int bestpos; + int bestpos = 0; double bestc=0; double sigamp= 0; int16_t *signal, *data;