mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 04:47:51 +00:00
examples/general: fix warnings on not handled reference type in switch
examples/general.c:402:5: warning: enumeration value ‘GIT_REF_INVALID’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_PACKED’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_HAS_PEEL’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_LISTALL’ not handled in switch [-Wswitch] Signe-off-by: Kirill A. Shutemov <kirill@shutemov.name>
This commit is contained in:
parent
51cc50a37d
commit
d6d877d20f
@ -408,6 +408,9 @@ int main (int argc, char** argv)
|
||||
case GIT_REF_SYMBOLIC:
|
||||
printf("%s => %s\n", refname, git_reference_target(ref));
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unexpected reference type\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user