elm_code: Fix a compilation warning
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 29 Jun 2017 04:42:35 +0000 (13:42 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 29 Jun 2017 07:02:36 +0000 (16:02 +0900)
warning: expression result unused; should this cast be to 'void'?
[-Wunused-value]

src/lib/elementary/elm_code_widget_selection.c

index 441bf9b..5c5c1b7 100644 (file)
@@ -100,7 +100,7 @@ elm_code_widget_selection_select_all(Evas_Object *widget)
    elm_code_widget_selection_start(widget, 1, 1);
    int maxrow = elm_code_file_lines_get(pd->code->file);
    last_line = elm_code_file_line_get(pd->code->file, elm_code_file_lines_get(pd->code->file));
-   (void*) elm_code_line_text_get(last_line, &last_length);
+   elm_code_line_text_get(last_line, &last_length);
    last_col = elm_code_widget_line_text_column_width_to_position(widget, last_line, last_length);
 
    elm_code_widget_selection_end(widget, maxrow, last_col);