summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/general.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/general.c b/examples/general.c
index db0b2db48..176f49feb 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -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);
}
}