From 996d346ac843319c8c60e1dc9f207cdacc792455 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 15 Nov 2023 12:32:06 -0500 Subject: [PATCH] examples/svgtiny_display_x11.c: handle svgtiny_LIBCSS_ERROR This example program has a switch statement to handle errors, with one case for each svgtiny_code. Now that svgtiny_LIBCSS_ERROR belongs to that enum, we add it to the list of cases. --- examples/svgtiny_display_x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/svgtiny_display_x11.c b/examples/svgtiny_display_x11.c index 463beb8..291449d 100644 --- a/examples/svgtiny_display_x11.c +++ b/examples/svgtiny_display_x11.c @@ -126,6 +126,9 @@ int main(int argc, char *argv[]) diagram->error_line, diagram->error_message); break; + case svgtiny_LIBCSS_ERROR: + fprintf(stderr, "svgtiny_LIBCSS_ERROR"); + break; default: fprintf(stderr, "unknown svgtiny_code %i", code); break; -- 2.44.2