{"id":595,"date":"2011-03-25T15:38:26","date_gmt":"2011-03-25T04:38:26","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=595"},"modified":"2011-03-25T15:38:26","modified_gmt":"2011-03-25T04:38:26","slug":"warnings-as-errors-in-jssrc","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2011\/03\/25\/warnings-as-errors-in-jssrc\/","title":{"rendered":"Warnings-as-errors in js\/src\/"},"content":{"rendered":"<p><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=609532\">Bug 609532<\/a> changed the way the JavaScript shell is built so that compile warnings are treated as errors.\u00a0 We already had a zero-tolerance policy for compile warnings in js\/src\/, but they tend to creep in, especially on Windows, because most people develop on Mac or Linux.\u00a0 Already at least one Windows build turned red because of a warning, and it was immediately fixed by the dev responsible.  Previously that warning would have lasted for days or weeks until someone on Windows got sick enough of it to fix it.<\/p>\n<p>I&#8217;d love to see the same thing done for the entire browser, but judging by the reams of compile warnings that go by when building the browser, this won&#8217;t happen any time soon.<\/p>\n<p>Oh, and if you don&#8217;t know about <code>make -s<\/code> (a.k.a. <code>make --silent<\/code> or <code>make --quiet<\/code>), you should try it.  It&#8217;s indispensible!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bug 609532 changed the way the JavaScript shell is built so that compile warnings are treated as errors.\u00a0 We already had a zero-tolerance policy for compile warnings in js\/src\/, but they tend to creep in, especially on Windows, because most people develop on Mac or Linux.\u00a0 Already at least one Windows build turned red because [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/595"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=595"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/595\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}