Ticket #3598: mc-3598-0026-diffviewer-search.c-cleanup-Wcast-qual-warning.patch

File mc-3598-0026-diffviewer-search.c-cleanup-Wcast-qual-warning.patch, 1.3 KB (added by and, 8 years ago)
  • src/diffviewer/search.c

    From df887ef5ad8613753921a4e9ca482e939f44f8ec Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sat, 20 Feb 2016 12:36:11 +0000
    Subject: [PATCH] diffviewer/search.c: cleanup -Wcast-qual warning
    
    search.c:89:44: warning: to be safe all intermediate pointers in cast from 'gchar ** {aka char **}' to 'const char **' must be 'const' qualified [-Wcast-qual]
                     QUICK_RADIO (num_of_types, (const char **) list_of_types,
                                                ^
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/diffviewer/search.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/diffviewer/search.c b/src/diffviewer/search.c
    index 9504ebe..a07f7b5 100644
    a b mcdiffview_dialog_search (WDiff * dview) 
    8686            MC_HISTORY_SHARED_SEARCH, &exp, NULL, FALSE, FALSE, INPUT_COMPLETE_NONE), 
    8787            QUICK_SEPARATOR (TRUE), 
    8888            QUICK_START_COLUMNS, 
    89                 QUICK_RADIO (num_of_types, (const char **) list_of_types, 
     89                QUICK_RADIO (num_of_types, (const char **)(void *) list_of_types, 
    9090                             (int *) &mcdiffview_search_options.type, NULL), 
    9191            QUICK_NEXT_COLUMN, 
    9292                QUICK_CHECKBOX (N_("Cas&e sensitive"), &mcdiffview_search_options.case_sens, NULL),