Commit b00b9a7f authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

fel: Silence possible compiler warnings on "end of table" markers



This is done by explicitly setting at least one member field
(preferably the one that gets tested for validity later),
instead of just using "{ 0 }".
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent c4507cbc
...@@ -478,7 +478,7 @@ typedef struct { ...@@ -478,7 +478,7 @@ typedef struct {
sram_swap_buffers a10_a13_a20_sram_swap_buffers[] = { sram_swap_buffers a10_a13_a20_sram_swap_buffers[] = {
{ .buf1 = 0x01800, .buf2 = 0x8000, .size = 0x800 }, { .buf1 = 0x01800, .buf2 = 0x8000, .size = 0x800 },
{ .buf1 = 0x05C00, .buf2 = 0x8800, .size = 0x8000 - 0x5C00 }, { .buf1 = 0x05C00, .buf2 = 0x8800, .size = 0x8000 - 0x5C00 },
{ 0 } /* End of the table */ { .size = 0 } /* End of the table */
}; };
/* /*
...@@ -490,7 +490,7 @@ sram_swap_buffers a10_a13_a20_sram_swap_buffers[] = { ...@@ -490,7 +490,7 @@ sram_swap_buffers a10_a13_a20_sram_swap_buffers[] = {
sram_swap_buffers a31_sram_swap_buffers[] = { sram_swap_buffers a31_sram_swap_buffers[] = {
{ .buf1 = 0x01800, .buf2 = 0x44000, .size = 0x800 }, { .buf1 = 0x01800, .buf2 = 0x44000, .size = 0x800 },
{ .buf1 = 0x05C00, .buf2 = 0x44800, .size = 0x8000 - 0x5C00 }, { .buf1 = 0x05C00, .buf2 = 0x44800, .size = 0x8000 - 0x5C00 },
{ 0 } /* End of the table */ { .size = 0 } /* End of the table */
}; };
/* /*
...@@ -500,7 +500,7 @@ sram_swap_buffers a31_sram_swap_buffers[] = { ...@@ -500,7 +500,7 @@ sram_swap_buffers a31_sram_swap_buffers[] = {
sram_swap_buffers a80_sram_swap_buffers[] = { sram_swap_buffers a80_sram_swap_buffers[] = {
{ .buf1 = 0x11800, .buf2 = 0x20000, .size = 0x800 }, { .buf1 = 0x11800, .buf2 = 0x20000, .size = 0x800 },
{ .buf1 = 0x15400, .buf2 = 0x20800, .size = 0x18000 - 0x15400 }, { .buf1 = 0x15400, .buf2 = 0x20800, .size = 0x18000 - 0x15400 },
{ 0 } /* End of the table */ { .size = 0 } /* End of the table */
}; };
soc_sram_info soc_sram_info_table[] = { soc_sram_info soc_sram_info_table[] = {
...@@ -562,7 +562,7 @@ soc_sram_info soc_sram_info_table[] = { ...@@ -562,7 +562,7 @@ soc_sram_info soc_sram_info_table[] = {
.thunk_addr = 0x23400, .thunk_size = 0x200, .thunk_addr = 0x23400, .thunk_size = 0x200,
.swap_buffers = a80_sram_swap_buffers, .swap_buffers = a80_sram_swap_buffers,
}, },
{ 0 } /* End of the table */ { .swap_buffers = NULL } /* End of the table */
}; };
/* /*
...@@ -577,7 +577,7 @@ soc_sram_info soc_sram_info_table[] = { ...@@ -577,7 +577,7 @@ soc_sram_info soc_sram_info_table[] = {
*/ */
sram_swap_buffers generic_sram_swap_buffers[] = { sram_swap_buffers generic_sram_swap_buffers[] = {
{ .buf1 = 0x01C00, .buf2 = 0x5800, .size = 0x400 }, { .buf1 = 0x01C00, .buf2 = 0x5800, .size = 0x400 },
{ 0 } /* End of the table */ { .size = 0 } /* End of the table */
}; };
soc_sram_info generic_sram_info = { soc_sram_info generic_sram_info = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment