[geany/geany] 00c2cc: Fix gcc missing field initializer warning

Nick Treleaven git-noreply at geany.org
Wed Oct 24 16:43:26 UTC 2012


Branch:      refs/heads/master
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Wed, 24 Oct 2012 16:43:26
Commit:      00c2cc20eaacd9ef26e89ab0c0c7a009a8f64118
             https://github.com/geany/geany/commit/00c2cc20eaacd9ef26e89ab0c0c7a009a8f64118

Log Message:
-----------
Fix gcc missing field initializer warning


Modified Paths:
--------------
    src/printing.c

Modified: src/printing.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -472,7 +472,8 @@ static void printing_print_gtk(GeanyDocument *doc)
 	GtkPrintOperation *op;
 	GtkPrintOperationResult res = GTK_PRINT_OPERATION_RESULT_ERROR;
 	GError *error = NULL;
-	DocInfo dinfo = { 0 };
+	static const DocInfo dinfo0;
+	DocInfo dinfo = dinfo0;
 	PrintWidgets *widgets;
 
 	/** TODO check for monospace font, detect the widest character in the font and



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).


More information about the Commits mailing list