core: Silence gcc -Wall compiler warnings
This commit is contained in:
1 parent
e03ffa269b
commit
1ba3a67eb5
6 files changed
+10
-10
No files matched your search
@@ -46,6 +46,9 @@ static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static char *
|
||||
get_tmpdir (void) G_GNUC_UNUSED;
|
||||
|
||||
static char *
|
||||
get_tmpdir (void)
|
||||
{
|
||||
@@ -74,6 +77,11 @@ get_tmpdir (void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
open_log (const char *name,
|
||||
GOutputStream **out_log,
|
||||
GError **error) G_GNUC_UNUSED;
|
||||
|
||||
static gboolean
|
||||
open_log (const char *name,
|
||||
GOutputStream **out_log,
|
||||
@@ -108,7 +116,6 @@ osbuild_builtin_buildone (int argc, char **argv, const char *prefix, GError **er
|
||||
{
|
||||
GOptionContext *context;
|
||||
gboolean ret = FALSE;
|
||||
char *tmpdir;
|
||||
|
||||
context = g_option_context_new ("- Build current directory");
|
||||
g_option_context_add_main_entries (context, options, NULL);
|
||||
|
||||
@@ -129,9 +129,7 @@ main (int argc,
|
||||
GPtrArray *make_args;
|
||||
GPtrArray *makeinstall_args;
|
||||
GPtrArray *args;
|
||||
int i;
|
||||
char **subprocess_env;
|
||||
GError *error = NULL;
|
||||
|
||||
g_type_init ();
|
||||
|
||||
@@ -150,7 +148,7 @@ main (int argc,
|
||||
const char *autogen;
|
||||
char **autogen_env;
|
||||
|
||||
autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh");
|
||||
autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh", NULL);
|
||||
if (!autogen)
|
||||
ot_util_fatal_literal ("No executable configure or autogen script found");
|
||||
|
||||
|
||||
Reference in new issue
Block a user