Skip to content

Commit

Permalink
code: cleanup lint and extra compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Jul 10, 2022
1 parent 4e2161c commit a83818c
Show file tree
Hide file tree
Showing 22 changed files with 695 additions and 574 deletions.
9 changes: 7 additions & 2 deletions .github/ISSUE_TEMPLATE/issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ assignees: ''

2. 运营商

3. smartdns来源以及版本

4. 涉及的配置(注意去除个人相关信息)


**重现步骤**
1. 上游DNS配置。

2. 访问的域名。


**信息收集**
1. 将/var/log/smrtdns.log日志作为附件上传。
2. 如进程异常,请将coredump功能开启,上传coredump信息文件。
1. 将/var/log/smrtdns.log日志作为附件上传(注意去除个人相关信息)
2. 如进程异常,请将coredump功能开启,上传coredump信息文件,同时上传配套的smartdns进程文件
在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
coredump文件在/tmp目录下

2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OBJS=smartdns.o fast_ping.o dns_client.o dns_server.o dns.o util.o tlog.o dns_co

# cflags
ifndef CFLAGS
CFLAGS =-O2 -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables
CFLAGS =-O2 -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough
endif
override CFLAGS +=-Iinclude
override CFLAGS += -DBASE_FILE_NAME=\"$(notdir $<)\"
Expand Down
Loading

0 comments on commit a83818c

Please sign in to comment.