Ticket #4179: mc-4179-fix-lto-type-mismatch-warning.patch

File mc-4179-fix-lto-type-mismatch-warning.patch, 2.4 KB (added by and, 4 years ago)
  • tests/src/execute__execute_external_editor_or_viewer.c

    From 856a42c99f110af45bae13ad04952e9323464a87 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 28 Dec 2020 18:19:14 +0000
    Subject: [PATCH] fix lto-type-mismatch warning
    
    Found by gcc-9.3.0
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     tests/src/execute__execute_external_editor_or_viewer.c        | 4 ++--
     .../src/execute__execute_get_external_cmd_opts_from_config.c  | 2 +-
     2 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/tests/src/execute__execute_external_editor_or_viewer.c b/tests/src/execute__execute_external_editor_or_viewer.c
    index a861d29f0..4e3e63e31 100644
    a b  
    3232/* --------------------------------------------------------------------------------------------- */ 
    3333 
    3434char *execute_get_external_cmd_opts_from_config (const char *command, 
    35                                                  const vfs_path_t * filename_vpath, int start_line); 
     35                                                 const vfs_path_t * filename_vpath, long start_line); 
    3636 
    3737/* @CapturedValue */ 
    3838static char *execute_external_cmd_opts__command__captured; 
    static char *execute_external_cmd_opts__return_value; 
    4747/* @Mock */ 
    4848char * 
    4949execute_get_external_cmd_opts_from_config (const char *command, const vfs_path_t * filename_vpath, 
    50                                            int start_line) 
     50                                           long start_line) 
    5151{ 
    5252    execute_external_cmd_opts__command__captured = g_strdup (command); 
    5353    execute_external_cmd_opts__filename_vpath__captured = vfs_path_clone (filename_vpath); 
  • tests/src/execute__execute_get_external_cmd_opts_from_config.c

    diff --git a/tests/src/execute__execute_get_external_cmd_opts_from_config.c b/tests/src/execute__execute_get_external_cmd_opts_from_config.c
    index 379717d22..1606bfefd 100644
    a b  
    3333#include "src/vfs/local/local.c" 
    3434 
    3535char *execute_get_external_cmd_opts_from_config (const char *command, 
    36                                                  const vfs_path_t * filename_vpath, int start_line); 
     36                                                 const vfs_path_t * filename_vpath, long start_line); 
    3737 
    3838/* --------------------------------------------------------------------------------------------- */ 
    3939