So, I’m totally new to c++ but I know there are ways to prevent warnings from causing errors. I’m having the following warning
warning: multi-character character constant [-Wmultichar]
10 | std::cout << add(1, 2) << '/n';
| ^~~~
I just want to complile the code. task.json
:
"args": [
"-fdiagnostics-color=always",
"-O2",
"-DNDEBUG",
"-pedantic-errors",
"-Wall",
"-Weffc++",
"-Wextra",
"-Wconversion",
"-Wsign-conversion",
"-std=c++17",
"${fileDirname}\**.cpp",
"-o",
"${fileDirname}\${fileBasenameNoExtension}.exe"
]
How can I do this? I tried adding -Wno-error but to no avail.