修复编译警告:移除main函数未使用的argc参数

This commit is contained in:
2025-10-09 20:24:52 +08:00
parent 127ecdab8f
commit 5b7eccf414
6 changed files with 285 additions and 27 deletions
+32 -25
View File
@@ -1,28 +1,35 @@
{
"tasks":
[
{
"type": "shell",
"label": "C/C++: gcc.exe 生成活动文件",
"command": "D:\\Program Files\\mingw64\\bin\\gcc.exe",
"args":
[
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"-Wall",
"-Werror",
"-std=c++17",
"-fsanitize=address",
"-static-libasan"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": {"kind": "build","isDefault": true},
"detail": "调试器生成的任务。"
}
],
"tasks":
[
{
"type": "shell",
"label": "C/C++: gcc.exe 生成活动文件",
"command": "D:\\Program Files\\mingw64\\bin\\gcc.exe",
"args":
[
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"-Wall",
"-Werror",
"-std=c++17",
"-fsanitize=address",
"-static-libasan"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
}