Skip to content

Commit 5ed053f

Browse files
raveit65lukefromdc
authored andcommitted
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) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( )
1 parent e88c26a commit 5ed053f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libcaja-private/caja-undostack-manager.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ get_uri_parent_path (char *uri)
19641964
static GHashTable *
19651965
retrieve_files_to_restore (GHashTable * trashed)
19661966
{
1967-
if (!(g_hash_table_size (trashed)) > 0) {
1967+
if ((!(g_hash_table_size (trashed))) > 0) {
19681968
return NULL;
19691969
}
19701970

0 commit comments

Comments
 (0)