diff options
Diffstat (limited to 'subsurface-core/git-access.c')
-rw-r--r-- | subsurface-core/git-access.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subsurface-core/git-access.c b/subsurface-core/git-access.c index e986607ab..c902bf60b 100644 --- a/subsurface-core/git-access.c +++ b/subsurface-core/git-access.c @@ -1,3 +1,6 @@ +// Clang has a bug on zero-initialization of C structs. +#pragma clang diagnostic ignored "-Wmissing-field-initializers" + #include <stdio.h> #include <ctype.h> #include <string.h> @@ -664,7 +667,7 @@ static git_repository *create_local_repo(const char *localdir, const char *remot * to our cloud storage and the branch doesn't exist. * So we need to create the branch and push it to the remote */ cloned_repo = create_and_push_remote(localdir, remote, branch); -#if !defined(DEBUG) +#if !defined(DEBUG) && !defined(SUBSURFACE_MOBILE) } else if (is_subsurface_cloud) { report_error(translate("gettextFromC", "Error connecting to Subsurface cloud storage")); #endif |