Files that have attr=config in the *.pdsc are copied to the project. An include path is automatically generated.
It is a potential risk to add an additional include path to original location in the *.pdsc file. This file does not contain configuration settings. It depends on the search order of the compiler to pickup the right header file (as effectively the same header file name is twice in the search path).
Suggest A Solutionpackchk should flag explicit include paths in *.pdsc to config files with a warning.
The Problem To Be Solved
Files that have
attr=config
in the*.pdsc
are copied to the project. An include path is automatically generated.It is a potential risk to add an additional include path to original location in the
*.pdsc
file. This file does not contain configuration settings. It depends on the search order of the compiler to pickup the right header file (as effectively the same header file name is twice in the search path).Suggest A Solution
packchk
should flag explicit include paths in*.pdsc
to config files with a warning.