Hello! We have a directory with files uploaded through external links svn. Edit these files is not allowed. And the problem is that in these files there are many warning'ov. The files are in the / External directory. Is it possible to ignore all the files in this directory on the subject of varnings (while maintaining the warning for the other files)? And if so, how? Thank.

  • You can ignore the varnings of all files from that directory :) - gil9red
  • And you can read more exactly how? - Jarex
  • As far as I know, no. It is possible only for all files. Or you can make a project subdirs , and in it in a subsidiary project collect third-party files as a static library. - maestro

1 answer 1

You can use the -isystem flag for the path in which to look for include files to ignore the warning for this path. For Qt, it will look like this:

QMAKE_CXXFLAGS += -isystem "$$[QT_INSTALL_HEADERS]/qt5" \ -isystem "$$[QT_INSTALL_HEADERS]/qt5/QtWidgets"

Each individual directory must be muted separately.