diff options
author | GranBurguesa <danielberger@gmail.com> | 2021-09-17 10:41:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 10:41:55 -0400 |
commit | a9142e0e9ac7f5e7e26aedaee848becc67f250ac (patch) | |
tree | ee0ac7ecabdc06961d30ebf7e8eafb374da7b50a | |
parent | b7fff74716ccd962413cdf31977a27c381b8a746 (diff) | |
download | libfaketime-a9142e0e9ac7f5e7e26aedaee848becc67f250ac.tar.gz |
fix do/while guard for DONT_FAKE_TIME macro
the newer version gcc warns `this ‘while’ clause does not guard... [-Werror=misleading-indentation]`. looks like the author just omitted the `do` and the `while(0) counts as a separate statement.
in practice this isn't causing any actual problem now afaict.
-rw-r--r-- | src/libfaketime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfaketime.c b/src/libfaketime.c index 6def8f2..0dd037b 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -148,7 +148,7 @@ static __thread bool dont_fake = false; /* Wrapper for function calls, which we want to return system time */ #define DONT_FAKE_TIME(call) \ - { \ + do { \ bool dont_fake_orig = dont_fake; \ if (!dont_fake) \ { \ |