public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Simon Ser <simon.ser@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] lib/tests/igt_audio: silence uninitialized variable warning
Date: Wed, 14 Aug 2019 13:41:36 +0300	[thread overview]
Message-ID: <20190814104136.3522-1-simon.ser@intel.com> (raw)

GCC doesn't seem smart enough to figure out that everything is fine. Let's just
initialize the variable to silence the warning.

Signed-off-by: Simon Ser <simon.ser@intel.com>
---
 lib/tests/igt_audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tests/igt_audio.c b/lib/tests/igt_audio.c
index a2d57fb8b661..c0727673cb1e 100644
--- a/lib/tests/igt_audio.c
+++ b/lib/tests/igt_audio.c
@@ -176,7 +176,7 @@ static void test_signal_detect_phaseshift(struct audio_signal *signal)

 igt_main
 {
-	struct audio_signal *signal;
+	struct audio_signal *signal = NULL;
 	int ret;
 	size_t i;

--
2.22.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2019-08-14 10:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14 10:41 Simon Ser [this message]
2019-08-14 12:23 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/tests/igt_audio: silence uninitialized variable warning Patchwork
2019-08-15  2:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-08-15 10:14 ` [igt-dev] [PATCH i-g-t] " Arkadiusz Hiler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190814104136.3522-1-simon.ser@intel.com \
    --to=simon.ser@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox