List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] ui-snapshot.c: Terminate cgit_snapshot_formats[] properly
@ 2013-03-03 22:09 cgit
  2013-03-03 22:16 ` dpmcgee
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: cgit @ 2013-03-03 22:09 UTC (permalink / raw)


Explicitly set the suffix field of the terminating format entry to 0.
This fixes a GCC warning seen with "-Wmissing-field-initializers".

Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
---
 ui-snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui-snapshot.c b/ui-snapshot.c
index 47432bd..e740645 100644
--- a/ui-snapshot.c
+++ b/ui-snapshot.c
@@ -48,7 +48,7 @@ const struct cgit_snapshot_format cgit_snapshot_formats[] = {
 	{ ".tar.bz2", "application/x-bzip2", write_tar_bzip2_archive, 0x04 },
 	{ ".tar", "application/x-tar", write_tar_archive, 0x08 },
 	{ ".tar.xz", "application/x-xz", write_tar_xz_archive, 0x10 },
-	{}
+	{ 0 }
 };
 
 static const struct cgit_snapshot_format *get_format(const char *filename)
-- 
1.8.2.rc0.247.g811e0c0





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

end of thread, other threads:[~2013-03-04 14:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-03 22:09 [PATCH] ui-snapshot.c: Terminate cgit_snapshot_formats[] properly cgit
2013-03-03 22:16 ` dpmcgee
2013-03-04  7:01   ` cgit
2013-03-04 14:13     ` Jason
2013-03-03 22:55 ` john
2013-03-03 23:41   ` cgit
2013-03-03 23:53     ` john
2013-03-03 23:59     ` Jason
2013-03-03 23:51 ` [PATCH v2] " cgit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).