[glib: 4/7] Fix missing initializer warning in tests/slice-threadinit.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/7] Fix missing initializer warning in tests/slice-threadinit.c
- Date: Thu, 27 May 2021 10:00:29 +0000 (UTC)
commit a369efd207fd870c771668baad4d9e62a21d2df1
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Apr 29 13:48:34 2021 +0200
Fix missing initializer warning in tests/slice-threadinit.c
tests/slice-threadinit.c:34:30: warning: missing field 'sample' initializer
} pages[N_PAGES] = { { NULL, }, };
^
tests/slice-threadinit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/slice-threadinit.c b/tests/slice-threadinit.c
index 30b186147..e303aa0b2 100644
--- a/tests/slice-threadinit.c
+++ b/tests/slice-threadinit.c
@@ -31,7 +31,7 @@
static struct {
void *page;
void *sample;
-} pages[N_PAGES] = { { NULL, }, };
+} pages[N_PAGES] = { { NULL, NULL }, };
static const guint magazine_probes[] = MAGAZINE_PROBES;
#define N_MAGAZINE_PROBES G_N_ELEMENTS (magazine_probes)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]