[evolution] Address a compiler warning about ENABLE_MAINTAINER_MODE



commit 73f27df2ff1a37699f80f9cd3c95cf767e7ad44f
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 29 13:49:42 2020 +0200

    Address a compiler warning about ENABLE_MAINTAINER_MODE
    
    This is shown only when the maintainer mode is off. It should
    be '#ifdef', instead of '#if', of course.

 src/e-util/e-web-view.c                     | 2 +-
 src/modules/webkit-editor/e-webkit-editor.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/e-util/e-web-view.c b/src/e-util/e-web-view.c
index d5bf1488fc..5c422c641c 100644
--- a/src/e-util/e-web-view.c
+++ b/src/e-util/e-web-view.c
@@ -908,7 +908,7 @@ web_view_constructor (GType type,
                                webkit_web_context_set_web_extensions_directory (web_context, 
EVOLUTION_WEB_EXTENSIONS_DIR);
                                webkit_web_context_set_sandbox_enabled (web_context, TRUE);
                                webkit_web_context_add_path_to_sandbox (web_context, EVOLUTION_WEBKITDATADIR, 
TRUE);
-                               #if ENABLE_MAINTAINER_MODE
+                               #ifdef ENABLE_MAINTAINER_MODE
                                webkit_web_context_add_path_to_sandbox (web_context, 
EVOLUTION_SOURCE_WEBKITDATADIR, TRUE);
                                #endif
 
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index a300f3b980..5b782a7328 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -4200,7 +4200,7 @@ webkit_editor_constructor (GType type,
                                webkit_web_context_set_web_extensions_directory (web_context, 
EVOLUTION_WEB_EXTENSIONS_WEBKIT_EDITOR_DIR);
                                webkit_web_context_set_sandbox_enabled (web_context, TRUE);
                                webkit_web_context_add_path_to_sandbox (web_context, EVOLUTION_WEBKITDATADIR, 
TRUE);
-                               #if ENABLE_MAINTAINER_MODE
+                               #ifdef ENABLE_MAINTAINER_MODE
                                webkit_web_context_add_path_to_sandbox (web_context, 
EVOLUTION_SOURCE_WEBKITDATADIR, TRUE);
                                #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]