lib/checkout: Squash a gcc maybe-uninitialized warning
gcc doesn't know that our enum cases must be exhaustive. Closes: #1201 Approved by: jlebon
This commit is contained in:
parent
3767ac4ad8
commit
f639f8f4c0
|
|
@ -303,11 +303,11 @@ create_file_copy_from_input_at (OstreeRepo *repo,
|
|||
return FALSE;
|
||||
|
||||
/* The add/union/none behaviors map directly to GLnxLinkTmpfileReplaceMode */
|
||||
GLnxLinkTmpfileReplaceMode replace_mode;
|
||||
GLnxLinkTmpfileReplaceMode replace_mode = GLNX_LINK_TMPFILE_NOREPLACE;
|
||||
switch (options->overwrite_mode)
|
||||
{
|
||||
case OSTREE_REPO_CHECKOUT_OVERWRITE_NONE:
|
||||
replace_mode = GLNX_LINK_TMPFILE_NOREPLACE;
|
||||
/* Handled above */
|
||||
break;
|
||||
case OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES:
|
||||
replace_mode = GLNX_LINK_TMPFILE_REPLACE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue