Browse Source

[components][ulog] ULOG_OUTPUT_LEVEL未定义时,level_output_info产生警告

wdfk-prog 10 tháng trước cách đây
mục cha
commit
ff6d5b13f0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      components/utilities/ulog/ulog.c

+ 2 - 0
components/utilities/ulog/ulog.c

@@ -108,6 +108,7 @@ struct rt_ulog
 #endif /* ULOG_USING_FILTER */
 };
 
+#ifdef ULOG_OUTPUT_LEVEL
 /* level output info */
 static const char * const level_output_info[] =
 {
@@ -120,6 +121,7 @@ static const char * const level_output_info[] =
     "I/",
     "D/",
 };
+#endif /* ULOG_OUTPUT_LEVEL */
 
 #ifdef ULOG_USING_COLOR
 /* color output info */