{"id":430,"date":"2010-10-29T10:59:00","date_gmt":"2010-10-29T15:59:00","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=430"},"modified":"2010-10-29T10:59:00","modified_gmt":"2010-10-29T15:59:00","slug":"getting-rid-of-the-boost-warnings","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=430","title":{"rendered":"Getting rid of the Boost warnings"},"content":{"rendered":"<p>Ever since I started to do 64-bit development, I had a problem with the Boost headers producing a ton of implicit conversion warnings in Xcode.<br \/>\nThis is due to the fact that I am compiling with the following flag:<\/p>\n<div style=\"font-family:Courier;font-size:14px\">-Wshorten-64-to-3<\/div>\n<p>\nI got this idea from both Herb Sutter and the Viva 64 website, where you should be compiling cleanly with the highest warning level turned on.<br \/>\nWell, with that warning turned on, I was getting well over 1000 warnings with the same message:<\/p>\n<div style=\"font-family:Courier;font-size:14px\">warning: implicit conversion shortens 64-bit value into a 32-bit value<\/div>\n<p>\nI let this go for a while because Xcode doesn&#8217;t support the warning suppression flag available in GCC and I really don&#8217;t have too much control over the files that were causing the warning.<br \/>\nWell, I finally had to fix the problem: the continuous build system I&#8217;m using was spitting out a ton of warnings from some projects and finding the errors in a sea of warnings was making me miss the important stuff.<br \/>\nBy accident, it dawned on me that warnings in system headers are ignored, so, it would seem logical to have the boost headers included with the system header search path:<\/p>\n<div style=\"font-family:Courier;font-size:14px\">OTHER_CPLUSPLUSFLAGS = $(OTHER_CFLAGS) -isystem\\Users\\jaimerios\\Development\\Blah\\boost\\boost_1_41<\/div>\n<p>\nI saw a lot of other posts where people complained about this same issue, but no one had a solution to this. <br \/>\nSo far, this is working for me, and hopefully, this will work for you too if you have this problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since I started to do 64-bit development, I had a problem with the Boost headers producing a ton of implicit conversion warnings in Xcode. This is due to the fact that I am compiling with the following flag: -Wshorten-64-to-3 I got this idea from both Herb Sutter and the Viva 64 website, where you &#8230; <a title=\"Getting rid of the Boost warnings\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=430\" aria-label=\"Read more about Getting rid of the Boost warnings\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[46,87,211,245],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-coding","tag-64-bit-warnings","tag-boost","tag-gcc","tag-implicit-conversion"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}