SF.net SVN: geany:[5782] branches/0.20.1/src/build.c

colombanw at users.sourceforge.net colombanw at xxxxx
Mon May 9 17:37:18 UTC 2011


Revision: 5782
          http://geany.svn.sourceforge.net/geany/?rev=5782&view=rev
Author:   colombanw
Date:     2011-05-09 17:37:17 +0000 (Mon, 09 May 2011)

Log Message:
-----------
Don't use non-C89 initializers

Modified Paths:
--------------
    branches/0.20.1/src/build.c

Modified: branches/0.20.1/src/build.c
===================================================================
--- branches/0.20.1/src/build.c	2011-05-09 17:36:59 UTC (rev 5781)
+++ branches/0.20.1/src/build.c	2011-05-09 17:37:17 UTC (rev 5782)
@@ -189,10 +189,10 @@
 }
 
 
-static const gchar *config_keys[] = {
-	[GEANY_BC_LABEL] = "LB",
-	[GEANY_BC_COMMAND] = "CM",
-	[GEANY_BC_WORKING_DIR] = "WD"
+static const gchar *config_keys[GEANY_BC_CMDENTRIES_COUNT] = {
+	"LB", /* label */
+	"CM", /* command */
+	"WD"  /* working directory */
 };
 
 /*-----------------------------------------------------
@@ -1762,7 +1762,7 @@
 
 	for (i = 0; i < GEANY_BC_CMDENTRIES_COUNT; i++)
 		gtk_widget_modify_text(r->entries[i], GTK_STATE_NORMAL, color);
-};
+}
 
 
 static void set_build_command_entry_text(GtkWidget *wid, const gchar *text)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list