{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/dub/issues/493","repository_url":"https://api.github.com/repos/D-Programming-Language/dub","labels_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/493/comments","events_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/493/events","html_url":"https://github.com/D-Programming-Language/dub/issues/493","id":54611461,"number":493,"title":"Doc/Behavior mismatch: Are warnings errors by default?","user":{"login":"Abscissa","id":714873,"avatar_url":"https://avatars.githubusercontent.com/u/714873?v=3","gravatar_id":"","url":"https://api.github.com/users/Abscissa","html_url":"https://github.com/Abscissa","followers_url":"https://api.github.com/users/Abscissa/followers","following_url":"https://api.github.com/users/Abscissa/following{/other_user}","gists_url":"https://api.github.com/users/Abscissa/gists{/gist_id}","starred_url":"https://api.github.com/users/Abscissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abscissa/subscriptions","organizations_url":"https://api.github.com/users/Abscissa/orgs","repos_url":"https://api.github.com/users/Abscissa/repos","events_url":"https://api.github.com/users/Abscissa/events{/privacy}","received_events_url":"https://api.github.com/users/Abscissa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-16T18:58:35Z","updated_at":"2016-03-20T01:16:29Z","closed_at":null,"body":"According to the docs, dub uses non-fatal \"-wi\" warnings by default:\r\n\r\n> \"warnings\" \tEnable warnings, enabled by default (use \"buildRequirements\" to control this setting) \t-wi\r\n\r\nBut when running dub with -verbose, you can see it passes the compiler \"-w\", not \"-wi\", even when there's no \"buildRequirements\" or \"buildOptions\" in the dub.json file."},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/dub/issues/comments/198817871","html_url":"https://github.com/D-Programming-Language/dub/issues/493#issuecomment-198817871","issue_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/493","id":198817871,"user":{"login":"Abscissa","id":714873,"avatar_url":"https://avatars.githubusercontent.com/u/714873?v=3","gravatar_id":"","url":"https://api.github.com/users/Abscissa","html_url":"https://github.com/Abscissa","followers_url":"https://api.github.com/users/Abscissa/followers","following_url":"https://api.github.com/users/Abscissa/following{/other_user}","gists_url":"https://api.github.com/users/Abscissa/gists{/gist_id}","starred_url":"https://api.github.com/users/Abscissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abscissa/subscriptions","organizations_url":"https://api.github.com/users/Abscissa/orgs","repos_url":"https://api.github.com/users/Abscissa/repos","events_url":"https://api.github.com/users/Abscissa/events{/privacy}","received_events_url":"https://api.github.com/users/Abscissa/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T01:16:29Z","updated_at":"2016-03-20T01:16:29Z","body":"On 03/19/2016 06:32 PM, Martin Nowak wrote:\n>\n> The easier fix would be to enable warnings as errors only for the main package, but not for it's dependencies. That would at least work when separately building packages as libraries.\n>\n\nYea, that'd work, although it would still require at least some \ncapability on the compiler's part for \"warnings as errors\" to be applied \nonly to certain modules or packages. Point is, we can't really address \nthat particular issue without compiler cooperation.\n\n"}}