SF.net SVN: geany:[4023] branches/build-system

elextr at users.sourceforge.net elextr at xxxxx
Fri Jul 24 11:00:24 UTC 2009


Revision: 4023
          http://geany.svn.sourceforge.net/geany/?rev=4023&view=rev
Author:   elextr
Date:     2009-07-24 11:00:24 +0000 (Fri, 24 Jul 2009)

Log Message:
-----------
Fix build warnings

Modified Paths:
--------------
    branches/build-system/ChangeLog
    branches/build-system/src/build.c

Modified: branches/build-system/ChangeLog
===================================================================
--- branches/build-system/ChangeLog	2009-07-24 10:40:48 UTC (rev 4022)
+++ branches/build-system/ChangeLog	2009-07-24 11:00:24 UTC (rev 4023)
@@ -1,3 +1,9 @@
+2009-07-24  Lex Trotman  <elextr(at)gmail(dot)com>
+
+ * src/build.c
+   Fix build warnings.
+
+
 2009-07-22  Lex Trotman  <elextr(at)gmail(dot)com>
 
  * src/build.h, src/build.c, src/project.c

Modified: branches/build-system/src/build.c
===================================================================
--- branches/build-system/src/build.c	2009-07-24 10:40:48 UTC (rev 4022)
+++ branches/build-system/src/build.c	2009-07-24 11:00:24 UTC (rev 4023)
@@ -433,7 +433,7 @@
 /* parameter checked version of get_build_cmd for external interface */
 GeanyBuildCommand *build_get_current_menu_item(GeanyBuildGroup grp, gint cmd, gint *src)
 {
-	if (src>=BCS_COUNT || grp>=GBG_COUNT || cmd>=build_groups_count[grp]) return NULL;
+	if (*src>=BCS_COUNT || grp>=GBG_COUNT || cmd>=build_groups_count[grp]) return NULL;
 	return get_build_cmd(NULL, grp, cmd, src);
 }
 
@@ -510,18 +510,18 @@
 
 		/* replace %f with the filename (including extension) */
 		replacement = g_path_get_basename(filename);
-		utils_string_replace_all(&stack, "%f", replacement);
+		utils_string_replace_all(stack, "%f", replacement);
 		g_free(replacement);
 
 		/* replace %d with the absolute path of the dir of the current file */
 		replacement = g_path_get_dirname(filename);
-		utils_string_replace_all(&stack, "%d", replacement);
+		utils_string_replace_all(stack, "%d", replacement);
 		g_free(replacement);
 
 		/* replace %e with the filename (excluding extension) */
 		executable = utils_remove_ext_from_filename(filename);
 		replacement = g_path_get_basename(executable);
-		utils_string_replace_all(&stack, "%e", replacement);
+		utils_string_replace_all(stack, "%e", replacement);
 		g_free(replacement);
 	}
 	
@@ -538,7 +538,7 @@
 			replacement = g_path_get_dirname(filename);
     }
 
-    utils_string_replace_all(&stack, "%p", replacement);
+    utils_string_replace_all(stack, "%p", replacement);
     g_free(replacement);
 
     ret_str = utils_get_utf8_from_locale(stack->str);


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