Blob Blame History Raw
From 5bd173eb59b0920e37a140af38c49cc762cdf039 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Sat, 13 Feb 2016 16:57:27 -0500
Subject: [PATCH] Fix gcc6 error about shifting a signed expression

typedefs.h:163:40: error: left operand of shift expression '(-1 << 8)' is negative [-fpermissive]
  CHANGE_ERROR_MASK              = (~0) << 8, /* the values below are fatal errors */
                                   ~~~~~^~~~
---
 src/typedefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/typedefs.h b/src/typedefs.h
index d5a65c8f7b..cc274cc5e4 100644
--- a/src/typedefs.h
+++ b/src/typedefs.h
@@ -160,7 +160,7 @@ typedef enum {
 	CHANGE_WARN_CHANGED_EXT        = 1 << 3,
 	CHANGE_WARN_UNSAVED_META       = 1 << 4,
 	CHANGE_WARN_NO_WRITE_PERM_DEST_DIR  = 1 << 5,
-	CHANGE_ERROR_MASK              = (~0) << 8, /* the values below are fatal errors */
+	CHANGE_ERROR_MASK              = (~0u) << 8, /* the values below are fatal errors */
 	CHANGE_NO_READ_PERM            = 1 << 8,
 	CHANGE_NO_WRITE_PERM_DIR       = 1 << 9,
 	CHANGE_NO_DEST_DIR             = 1 << 10,
-- 
2.5.0