[Bf-blender-cvs] [ecda7e00c11] soc-2020-info-editor: Cleanup and silence compiler warning

Mateusz Grzeliński noreply at git.blender.org
Thu Jul 2 15:23:24 CEST 2020


Commit: ecda7e00c11dd8d99d85c5503106c32308fc7c2f
Author: Mateusz Grzeliński
Date:   Thu Jul 2 15:21:00 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBecda7e00c11dd8d99d85c5503106c32308fc7c2f

Cleanup and silence compiler warning

===================================================================

M	source/blender/editors/space_info/info_report.c

===================================================================

diff --git a/source/blender/editors/space_info/info_report.c b/source/blender/editors/space_info/info_report.c
index ae7a4b5def5..be2beb66d3e 100644
--- a/source/blender/editors/space_info/info_report.c
+++ b/source/blender/editors/space_info/info_report.c
@@ -52,7 +52,10 @@ bool info_filter_text(const Report *report, const char *search_string)
   return strstr(report->message, search_string) != NULL;
 }
 
-static void reports_select_all(ReportList *reports, int report_mask, const char *search_string, int action)
+static void reports_select_all(ReportList *reports,
+                               int report_mask,
+                               const char *search_string,
+                               int action)
 {
   if (action == SEL_TOGGLE) {
     action = SEL_SELECT;
@@ -504,7 +507,7 @@ ReportList *clog_to_report_list()
 {
   ReportList *reports = MEM_mallocN(sizeof(*reports), "ClogConvertedToReportList");
   BKE_reports_init(reports, RPT_STORE);
-  ListBase *records = CLG_log_record_get();
+  ListBase *records = (ListBase *)CLG_log_record_get();
 
   if (BLI_listbase_is_empty(records)) {
     return reports;
@@ -542,8 +545,6 @@ ReportList *clog_to_report_list()
     }
     MEM_freeN(cstr);
     BLI_dynstr_free(dynStr);
-//    log_iter = log->next;
-//    log = log_iter;
     log = log->next;
   }
   return reports;



More information about the Bf-blender-cvs mailing list