Skip to content

Commit c5c5ecd

Browse files
committed
tidy:规避编译警告
1 parent 4b66a71 commit c5c5ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/base/backtrace.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#endif //HAVE_EXECINFO_H
3939

4040
#include <sstream>
41+
#include "defines.h"
4142

4243
namespace tbox {
4344

@@ -82,6 +83,7 @@ std::string DumpBacktrace(const unsigned int max_frames)
8283
oss << "[truncated]" << std::endl;
8384

8485
#else
86+
UNUSED_VAR(max_frames);
8587
oss << "not support backtrace" << std::endl;
8688
#endif //HAVE_EXECINFO_H
8789

0 commit comments

Comments
 (0)