Skip to content

Commit 9f8f531

Browse files
committed
Merge branch 'dl/squelch-maybe-uninitialized' into jch
Squelch false-positive compiler warning. * dl/squelch-maybe-uninitialized: fix -Wmaybe-uninitialized with -Og
2 parents f313adc + dbad177 commit 9f8f531

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ static int set_head(int argc, const char **argv, const char *prefix,
14631463
b_local_head = STRBUF_INIT;
14641464
char *head_name = NULL;
14651465
struct ref_store *refs = get_main_ref_store(the_repository);
1466-
struct remote *remote;
1466+
struct remote *remote = NULL;
14671467

14681468
struct option options[] = {
14691469
OPT_BOOL('a', "auto", &opt_a,

t/unit-tests/clar/clar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static void
350350
clar_run_suite(const struct clar_suite *suite, const char *filter)
351351
{
352352
const struct clar_func *test = suite->tests;
353-
size_t i, matchlen;
353+
size_t i, matchlen = 0;
354354
struct clar_report *report;
355355
int exact = 0;
356356

0 commit comments

Comments
 (0)