[previous] 0839 [next] File '%1s' has already been included indirectly from within file '%2s'.
Preprocessing

This file has already been included indirectly from within the current file, i.e. by a nested #include statement. This #include statement is probably redundant. Is this intended ?

Message 0839 is only generated on a #include directive in the primary source file. i.e. not for repeated inclusion within a header file.

For example:


#pragma PRQA_MESSAGES_OFF 816,3211

/**************************
EXAMPLE:
========
The file 0839b.h is included indirectly
(from within 0838a.h) and then included
directly from within the current file.

      0839a.h - 0839b.h
main<
      0839b.h
**************************/

#include "0839a.h"
#include "0839b.h"                              /* Message 0839 */

int a = 0;
int b = 0;

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents