core: Silence gcc -Wall compiler warnings
This commit is contained in:
parent
e03ffa269b
commit
1ba3a67eb5
|
|
@ -646,8 +646,7 @@ unpack_file (const char *path,
|
||||||
guint32 metadata_len;
|
guint32 metadata_len;
|
||||||
guint32 version, uid, gid, mode;
|
guint32 version, uid, gid, mode;
|
||||||
guint64 content_len;
|
guint64 content_len;
|
||||||
gsize bytes_read, bytes_written;
|
gsize bytes_read;
|
||||||
int temp_fd = -1;
|
|
||||||
|
|
||||||
file = ot_util_new_file_for_path (path);
|
file = ot_util_new_file_for_path (path);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -936,7 +936,6 @@ ostree_repo_store_packfile (OstreeRepo *self,
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
GString *tempfile_path = NULL;
|
GString *tempfile_path = NULL;
|
||||||
GChecksum *checksum = NULL;
|
GChecksum *checksum = NULL;
|
||||||
struct stat stbuf;
|
|
||||||
gboolean did_exist;
|
gboolean did_exist;
|
||||||
|
|
||||||
tempfile_path = g_string_new (priv->path);
|
tempfile_path = g_string_new (priv->path);
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ static GOptionEntry options[] = {
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static char *
|
||||||
|
get_tmpdir (void) G_GNUC_UNUSED;
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
get_tmpdir (void)
|
get_tmpdir (void)
|
||||||
{
|
{
|
||||||
|
|
@ -74,6 +77,11 @@ get_tmpdir (void)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
open_log (const char *name,
|
||||||
|
GOutputStream **out_log,
|
||||||
|
GError **error) G_GNUC_UNUSED;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
open_log (const char *name,
|
open_log (const char *name,
|
||||||
GOutputStream **out_log,
|
GOutputStream **out_log,
|
||||||
|
|
@ -108,7 +116,6 @@ osbuild_builtin_buildone (int argc, char **argv, const char *prefix, GError **er
|
||||||
{
|
{
|
||||||
GOptionContext *context;
|
GOptionContext *context;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
char *tmpdir;
|
|
||||||
|
|
||||||
context = g_option_context_new ("- Build current directory");
|
context = g_option_context_new ("- Build current directory");
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
|
|
|
||||||
|
|
@ -129,9 +129,7 @@ main (int argc,
|
||||||
GPtrArray *make_args;
|
GPtrArray *make_args;
|
||||||
GPtrArray *makeinstall_args;
|
GPtrArray *makeinstall_args;
|
||||||
GPtrArray *args;
|
GPtrArray *args;
|
||||||
int i;
|
|
||||||
char **subprocess_env;
|
char **subprocess_env;
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
|
|
@ -150,7 +148,7 @@ main (int argc,
|
||||||
const char *autogen;
|
const char *autogen;
|
||||||
char **autogen_env;
|
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)
|
if (!autogen)
|
||||||
ot_util_fatal_literal ("No executable configure or autogen script found");
|
ot_util_fatal_literal ("No executable configure or autogen script found");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *repo_path, GError **
|
||||||
const char *commit;
|
const char *commit;
|
||||||
const char *destination;
|
const char *destination;
|
||||||
GFile *destf = NULL;
|
GFile *destf = NULL;
|
||||||
int i;
|
|
||||||
|
|
||||||
context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
|
context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
static char *repo_path;
|
|
||||||
|
|
||||||
static GOptionEntry options[] = {
|
static GOptionEntry options[] = {
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue