0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:08:47 +00:00

Use -Wno-unused-result when compile c++ src

This commit is contained in:
Baoshuo Ren 2022-10-01 13:38:02 +08:00
parent 413432dbbf
commit 06b28530e1
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -5,7 +5,7 @@
"code-runner.runInTerminal": true, "code-runner.runInTerminal": true,
"code-runner.executorMap": { "code-runner.executorMap": {
"c": "gcc $fileName -o $fileNameWithoutExt.exe -O2 -lm && ./$fileNameWithoutExt.exe", "c": "gcc $fileName -o $fileNameWithoutExt.exe -O2 -lm && ./$fileNameWithoutExt.exe",
"cpp": "g++ --std=c++14 $fileName -o $fileNameWithoutExt.exe -O2 -lm -I \"$(git rev-parse --show-toplevel)/includes/testlib\" -I \"$(git rev-parse --show-toplevel)/includes/ac-library\" -fsanitize=address,undefined -fno-ms-extensions -Wall && ./$fileNameWithoutExt.exe", "cpp": "g++ --std=c++14 $fileName -o $fileNameWithoutExt.exe -O2 -lm -I \"$(git rev-parse --show-toplevel)/includes/testlib\" -I \"$(git rev-parse --show-toplevel)/includes/ac-library\" -fsanitize=address,undefined -fno-ms-extensions -Wall -Wno-unused-result && ./$fileNameWithoutExt.exe",
"python": "python -u $fileName", "python": "python -u $fileName",
"go": "go run $fileName", "go": "go run $fileName",
"javascript": "node $fileName", "javascript": "node $fileName",