Skip to content

Commit

Permalink
libcaja-private: fix -Wlogical-not-parentheses build warning
Browse files Browse the repository at this point in the history
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) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       (                             )
  • Loading branch information
raveit65 authored and lukefromdc committed May 7, 2018
1 parent e88c26a commit 5ed053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcaja-private/caja-undostack-manager.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ed053f

Please sign in to comment.