Anonymous avatar Anonymous committed a3a1665

Made gcc a bit happier

Comments (0)

Files changed (5)


-static int
+inline static int
 get_line_count (MooFoldTree *tree)
     return gtk_text_buffer_get_line_count (GTK_TEXT_BUFFER (tree->buffer));


-moo_line_buffer_get_line_index (LineBuffer     *line_buf,
+moo_line_buffer_get_line_index (G_GNUC_UNUSED LineBuffer *line_buf,
                                 Line           *line)
     guint index;


 GType           moo_term_pt_get_type        (void) G_GNUC_CONST;
 GType           moo_term_pt_unix_get_type   (void) G_GNUC_CONST;
-GType           moo_term_pt_win_get_type    (void) G_GNUC_CONST;
+GType           moo_term_pt_cyg_get_type    (void) G_GNUC_CONST;
 /* creates MooTermPtWin or MooTermPtUnix instance, depending on platform */
 MooTermPt      *_moo_term_pt_new            (struct _MooTerm *term);


                      char      **envp,
                      GSpawnFlags flags,
                      MooCmdFlags cmd_flags,
-                     GSpawnChildSetupFunc child_setup,
-                     gpointer    user_data,
+                     G_GNUC_UNUSED GSpawnChildSetupFunc child_setup,
+                     G_GNUC_UNUSED gpointer    user_data,
                      GError    **error)
     gboolean result;
     int *outp, *errp;
+#ifndef __WIN32__
     struct {
         GSpawnChildSetupFunc child_setup;
         gpointer user_data;
     } data = {child_setup, user_data};
     g_return_val_if_fail (MOO_IS_CMD (cmd), FALSE);
     g_return_val_if_fail (argv && argv[0], FALSE);


 #ifdef __WIN32__
 static gboolean
-open_uri (const char *uri, gboolean email/* = FALSE */)
+open_uri (const char *uri,
+          G_GNUC_UNUSED gboolean email)
     g_return_val_if_fail (uri != NULL, FALSE);
-    HINSTANCE h = ShellExecute (NULL, "open", uri, NULL, NULL,
-                                SW_SHOWNORMAL);
+    h = ShellExecute (NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
     return (int)h > 32;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.