{"id":1199,"date":"2013-04-06T16:53:17","date_gmt":"2013-04-06T06:53:17","guid":{"rendered":"http:\/\/brnz.org\/hbr\/?p=1199"},"modified":"2013-04-06T16:53:17","modified_gmt":"2013-04-06T06:53:17","slug":"bugs-of-the-day-friday-2013-03-29","status":"publish","type":"post","link":"https:\/\/brnz.org\/hbr\/?p=1199","title":{"rendered":"Bugs of the day, Friday 2013-03-29"},"content":{"rendered":"<p>This wasn&#8217;t a runtime bug, but two(!!) compile-time bugs that I checked in for others to find :\\<\/p>\n<p>Not all code is compiled with the same warning levels everywhere, so something that compiles without warning in one application with a lower warning level may not compile in another with a higher warning level (assuming warnings-as-errors).<\/p>\n<p>After finding <a title=\"Compiler-assisted code cleaning, Thursday 2013-03-28\" href=\"https:\/\/brnz.org\/hbr\/?p=1197\">no-longer-needed uses of a particular macro<\/a>, I did not delete my finder code. But taking the address of a class&#8217; member function and not doing anything with it can be warning-inducing. Bah.<\/p>\n<p>And one of the former users of the macro was left with a no-longer-used variable after my changes, \u00a0This was code I had failed to delete on the first pass. I am disappointed with myself to have not deleted more code when I first had the chance.<\/p>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\">How should I avoid such problems in the future? Compile code I change for all targets\/configurations\/applications that matter.<\/span><\/p>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\">Sometimes one can be too lazy.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This wasn&#8217;t a runtime bug, but two(!!) compile-time bugs that I checked in for others to find :\\ Not all code is compiled with the same warning levels everywhere, so something that compiles without warning in one application with a lower warning level may not compile in another with a higher warning level (assuming warnings-as-errors). &hellip; <a href=\"https:\/\/brnz.org\/hbr\/?p=1199\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bugs of the day, Friday 2013-03-29&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/1199"}],"collection":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1199"}],"version-history":[{"count":6,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/1199\/revisions"}],"predecessor-version":[{"id":1245,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/1199\/revisions\/1245"}],"wp:attachment":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}