]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Avoid -Wextra-semi-stmt warnings from Clang
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 May 2019 14:20:16 +0000 (16:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 May 2019 14:23:54 +0000 (16:23 +0200)
src/conf.c
unittest/framework.c

index 61e4a4be756ee9bdaf135d5481d26bbc5ad2e6d7..0e76863a03de5bb47b1f275c492f22372e35db44 100644 (file)
@@ -80,7 +80,7 @@ out:
 static bool
 parse_line(const char *line, char **key, char **value, char **errmsg)
 {
-#define SKIP_WS(x) while (isspace(*x)) { ++x; }
+#define SKIP_WS(x) do { while (isspace(*x)) { ++x; } } while (false)
 
        *key = NULL;
        *value = NULL;
index 3893f9149b716f8b477547cdb1960b5834c73412..43170c8311ec2929a3949ef92725f9ff92925308 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2018 Joel Rosdahl
+// Copyright (C) 2010-2019 Joel Rosdahl
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
@@ -294,7 +294,7 @@ cct_create_fresh_dir(const char *path)
 {
        cct_wipe(path);
        if (mkdir(path, 0777) != 0) {
-               fprintf(stderr, "mkdir: %s: %s", path, strerror(errno));;
+               fprintf(stderr, "mkdir: %s: %s", path, strerror(errno));
                abort();
        }
 }