<div dir="ltr"><div>Hello again,</div><div><br></div>I finally found out what was the issue. It was the <b>#line compiler directive</b>, that caused all the trouble<div><br></div><div>So it seems, that I cannot possibly make clang think that the header like below is a system one, so it would automatically suppress the warning:</div><div><div><br></div><div>#line 1 "some/garbage"</div><div>static char a = 0xfff;</div></div><div><br></div><div>Could any one suggest how to force clang to ignore <b>#line</b> or to anyhow solve the problem?</div><div><br></div><div>Regards,</div><div>Pavel Chuprikov</div></div><br><div class="gmail_quote"><div dir="ltr">чт, 2 июн. 2016 г. в 4:28, Pavel Chuprikov <<a href="mailto:pschuprikov@gmail.com">pschuprikov@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm trying to compile a test library, that uses boost.asio using clang, But clang issues<b> a warning in a boost's header</b>, despite the fact that it is passed using "<b>-isystem</b>".</div><div>I would be glad to investigate the problem further, but I just don't know where to dig, since everything seems OK to me.</div><div><br></div><div>I use NixOS linux distribution, so that's where all the other parameters are from (NixOS uses some kind of wrapper). But I don't see anything that could affect warnings.</div><div><br></div><div>An output from a clang execution follows:</div><div><br></div><div><div>clang version 3.7.1 (tags/RELEASE_371/final)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div><div>Found candidate GCC installation: /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0</div><div>Found candidate GCC installation: /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0</div><div>Selected GCC installation: /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0</div><div>Candidate multilib: .;@m64</div><div>Selected multilib: .;@m64</div><div> "/nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/bin/clang-3.7" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -v -dwarf-column-info -coverage-file /home/pschuprikov/test/build/CMakeFiles/test.dir/test.o -nostdsysteminc -resource-dir /nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/bin/../lib/clang/3.7.1 <b>-isystem /nix/store/n6q76296i7vv03a6w07ii5q17vgn331x-boost-1.59.0-dev/include</b> -idirafter /nix/store/bb32xf954imhdrzn7j8h82xs1bx7p3fr-glibc-2.23/include -idirafter /nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/lib/gcc/*/*/include-fixed <b>-isystem /nix/store/n6q76296i7vv03a6w07ii5q17vgn331x-boost-1.59.0-dev/include</b> -isystem /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/include/c++/5.3.0 -isystem /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/include/c++/5.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/bin/../lib/clang/3.7.1/include -Weverything -Wall -fdeprecated-macro -fdebug-compilation-dir /home/pschuprikov/test/build -ferror-limit 19 -fmessage-length 239 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/test.dir/test.o -x c++ /home/pschuprikov/test/test.cpp</div><div>clang -cc1 version 3.7.1 based upon LLVM 3.7.1 default target x86_64-unknown-linux-gnu</div><div>ignoring nonexistent directory "/nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/lib/gcc/*/*/include-fixed"</div><div>ignoring duplicate directory "/nix/store/n6q76296i7vv03a6w07ii5q17vgn331x-boost-1.59.0-dev/include"</div><div>#include "..." search starts here:</div><div>#include <...> search starts here:</div><div> /nix/store/n6q76296i7vv03a6w07ii5q17vgn331x-boost-1.59.0-dev/include</div><div> /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/include/c++/5.3.0</div><div> /nix/store/d2ljpb414jpmzik3cvl0xlmr5m4aggp7-gcc-5.3.0/include/c++/5.3.0/x86_64-unknown-linux-gnu</div><div> /nix/store/x5v3p89l3i8v0jfnilr71yjv2vxqcfk5-clang-3.7.1/bin/../lib/clang/3.7.1/include</div><div> /nix/store/bb32xf954imhdrzn7j8h82xs1bx7p3fr-glibc-2.23/include</div><div>End of search list.</div><div>In file included from /home/pschuprikov/test/test.cpp:1:</div><div>In file included from include/boost/system/error_code.hpp:15:</div><div><b>include/boost/cstdint.hpp:33:11: warning: macro name is a reserved identifier [-Wreserved-id-macro]</b></div><div>#  define __STDC_CONSTANT_MACROS</div></div><div><br></div><div>Thank you,</div><div>Pavel Chuprikov</div><div><br></div></div></blockquote></div>