From e295469f16223c351d0048827f86ffdf482f4e8f Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 23 Jun 2017 16:27:17 +0200 Subject: [PATCH] Fix an unguarded else clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes a gcc warning: xicursorset.c: In function ‘main’: xicursorset.c:77:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] else ^~~~ xicursorset.c:79:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’ if (theme == NULL) { ^~ --- xicursorset.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xicursorset.c b/xicursorset.c index e66644b..7c18c0f 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -72,14 +72,15 @@ int main(int argc, char *argv[]) } - if (argc == 4) + if (argc == 4) { theme = argv[3]; - else + } else { theme = XcursorGetTheme(dpy); if (theme == NULL) { fprintf(stderr, "Can't get cursor theme.\n"); return EXIT_FAILURE; } + } image = XcursorShapeLoadImage(shape, theme, size); if (image == NULL) { -- 2.1.4