diff options
author | Erlang/OTP <[email protected]> | 2010-01-20 06:51:10 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-01-20 06:51:10 +0000 |
commit | 9bf84f381797df7411335fed11ee83886b09514f (patch) | |
tree | 8409c4b5ded2b5c4e67b86099ce15a4e75b875aa /erts/doc/src | |
parent | b408b344732b5a20d996d1cb88a40a3e46247271 (diff) | |
parent | 96773ebcef2fe5949695a4fd923343ec4b049087 (diff) | |
download | otp-9bf84f381797df7411335fed11ee83886b09514f.tar.gz otp-9bf84f381797df7411335fed11ee83886b09514f.tar.bz2 otp-9bf84f381797df7411335fed11ee83886b09514f.zip |
Merge branch 'cf/compile_warning_as_error' into ccase/r13b04_dev
* cf/compile_warning_as_error:
Add option -Werror in erlc(1)
compile: add flag warnings_as_errors to treat warnings as errors
compile.erl: remove trailing whitespace
OTP-8382 The -Werror option for erlc and the compiler option
warnings_as_errors will cause warnings to be treated as errors.
(Thanks to Christopher Faulet.)
Diffstat (limited to 'erts/doc/src')
-rw-r--r-- | erts/doc/src/erlc.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/erts/doc/src/erlc.xml b/erts/doc/src/erlc.xml index 3859ac8365..1e8960c22c 100644 --- a/erts/doc/src/erlc.xml +++ b/erts/doc/src/erlc.xml @@ -4,7 +4,7 @@ <comref> <header> <copyright> - <year>1997</year><year>2009</year> + <year>1997</year><year>2010</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -13,12 +13,12 @@ compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. - + Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - + </legalnotice> <title>erlc</title> @@ -104,6 +104,10 @@ must be quoted. Terms which contain spaces must be quoted on all platforms.</p> </item> + <tag>-W<em>error</em></tag> + <item> + <p>Makes all warnings into errors.</p> + </item> <tag>-W<em>number</em></tag> <item> <p>Sets warning level to <em>number</em>. Default is <c><![CDATA[1]]></c>. |