diff options
author | raveit65 <[email protected]> | 2018-05-05 17:09:52 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-05-07 02:36:35 -0400 |
commit | 5ed053f9c332465a173c3ceeb8e3e16dfdbfc440 (patch) | |
tree | bd2798a507cc89d44ea908ee6ae5379ea6735157 | |
parent | e88c26a010b0e3b06317680cdce397ef77c137d4 (diff) | |
download | caja-5ed053f9c332465a173c3ceeb8e3e16dfdbfc440.tar.bz2 caja-5ed053f9c332465a173c3ceeb8e3e16dfdbfc440.tar.xz |
libcaja-private: fix -Wlogical-not-parentheses build warning
fixes this warning:
caja-undostack-manager.c: In function 'retrieve_files_to_restore':
caja-undostack-manager.c:1967:38: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (!(g_hash_table_size (trashed)) > 0) {
^
caja-undostack-manager.c:1967:7: note: add parentheses around left hand side expression to silence this warning
if (!(g_hash_table_size (trashed)) > 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( )
-rw-r--r-- | libcaja-private/caja-undostack-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcaja-private/caja-undostack-manager.c b/libcaja-private/caja-undostack-manager.c index f989add3..b1d15505 100644 --- a/libcaja-private/caja-undostack-manager.c +++ b/libcaja-private/caja-undostack-manager.c @@ -1964,7 +1964,7 @@ get_uri_parent_path (char *uri) static GHashTable * retrieve_files_to_restore (GHashTable * trashed) { - if (!(g_hash_table_size (trashed)) > 0) { + if ((!(g_hash_table_size (trashed))) > 0) { return NULL; } |