Files
mu4e/lib
Ævar Arnfjörð Bjarmason f7245d2372 mu-store: Silence confusing code that's throwing a clang warning
Doing:

    !access(...) == 0

Is equivalent to:

    (!access(...)) == 0

Not:

    !(access(...) == 0)

And throws this warning under clang:

    mu-store.cc:77:6: warning: logical not is only applied to the left hand
    side of this comparison [-Wlogical-not-parentheses]
            if (!access(xpath, F_OK) == 0) {
                ^                    ~~
    mu-store.cc:77:6: note: add parentheses after the '!' to evaluate the
    comparison first
            if (!access(xpath, F_OK) == 0) {
                ^
                 (                       )
    mu-store.cc:77:6: note: add parentheses around left hand side expression
    to silence this warning
            if (!access(xpath, F_OK) == 0) {
                ^
                (                   )

It ends up doing what the author intended anyway since access() returns
-1 on error, and !-1 == 0, but just do the more obvious check and check
that we don't get 0 here with !=.
2015-12-15 12:40:40 +01:00
..
2015-12-15 07:21:26 +02:00
2015-09-22 09:09:39 +01:00
2015-09-22 09:09:39 +01:00
2015-11-18 15:55:34 +02:00
2015-02-20 14:50:11 +01:00
2015-09-22 09:09:39 +01:00
2015-09-22 09:09:39 +01:00
2015-03-06 00:12:34 +02:00
2015-10-24 11:45:50 +03:00
2015-02-16 01:19:32 +02:00
2015-02-16 01:19:32 +02:00
2015-12-15 07:21:26 +02:00
2015-03-06 00:12:34 +02:00
2015-09-22 09:09:39 +01:00
2015-09-22 09:09:39 +01:00
2015-10-07 10:34:55 +03:00
2015-11-17 10:55:56 +02:00
2015-11-17 10:55:56 +02:00