This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

warning c318 should be an error

I got the warning c318 (can't open file ...). I think, this should be an error. If I include a file, which does not exists, the project schould not compile.

May there is a way (option to the compiler) to convert particular warnings to errors? (e. g. w/ command line option "-Werror=C318", like gcc)?

Parents
  • If nothing from the included file is used, then it doesn't matter that it can't be found - does it?

    So there's no reason for the build to fail in that case.

    If stuff from the included file is used, then there will be "undefined"/"undeclared" errors for those cases, and the project will not build - as required.

Reply
  • If nothing from the included file is used, then it doesn't matter that it can't be found - does it?

    So there's no reason for the build to fail in that case.

    If stuff from the included file is used, then there will be "undefined"/"undeclared" errors for those cases, and the project will not build - as required.

Children