public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/tests/igt_audio: silence uninitialized variable warning
@ 2019-08-14 10:41 Simon Ser
  2019-08-14 12:23 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Ser @ 2019-08-14 10:41 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-15 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-14 10:41 [igt-dev] [PATCH i-g-t] lib/tests/igt_audio: silence uninitialized variable warning Simon Ser
2019-08-14 12:23 ` [igt-dev] ✓ Fi.CI.BAT: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox