{"id":335,"date":"2015-05-06T16:19:04","date_gmt":"2015-05-06T14:19:04","guid":{"rendered":"https:\/\/blog.ramses-pyramidenbau.de\/?p=335"},"modified":"2015-05-06T16:19:04","modified_gmt":"2015-05-06T14:19:04","slug":"surpress-compiler-warnings-of-third-party-libraries","status":"publish","type":"post","link":"https:\/\/blog.vmexit.de\/?p=335","title":{"rendered":"Surpress compiler warnings of third party libraries"},"content":{"rendered":"<p>I like my compiler to be very verbose and pedantic. For me, <tt>-Wall -Wextra -pedantic -Weffc++<\/tt> is a must. And I don&#8217;t want to see any warnings before releasing my software.<\/p>\n<p>Well, but your compiler might still complain about headers of third party libraries which you do not want to touch. How to remove those annoying warnings?<\/p>\n<p>Here&#8217;s the simplest solution. Just add<br \/>\n<code><br \/>\n#pragma GCC system_header<br \/>\n<\/code><\/p>\n<p>to the affected header file and you will not be disturbed by those warnings any more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like my compiler to be very verbose and pedantic. For me, -Wall -Wextra -pedantic -Weffc++ is a must. And I don&#8217;t want to see any warnings before releasing my software. Well, but your compiler might still complain about headers of third party libraries which you do not want to touch. How to remove those &hellip; <a href=\"https:\/\/blog.vmexit.de\/?p=335\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Surpress compiler warnings of third party libraries<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":5,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions\/340"}],"wp:attachment":[{"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vmexit.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}