1<html lang="en"> 2<head> 3<title>W - Using as</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Using as"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Invoking.html#Invoking" title="Invoking"> 9<link rel="prev" href="v.html#v" title="v"> 10<link rel="next" href="Z.html#Z" title="Z"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<!-- 13This file documents the GNU Assembler "as". 14 15Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 162000, 2001, 2002, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 17Inc. 18 19Permission is granted to copy, distribute and/or modify this document 20under the terms of the GNU Free Documentation License, Version 1.3 21or any later version published by the Free Software Foundation; 22with no Invariant Sections, with no Front-Cover Texts, and with no 23Back-Cover Texts. A copy of the license is included in the 24section entitled ``GNU Free Documentation License''. 25 26--> 27<meta http-equiv="Content-Style-Type" content="text/css"> 28<style type="text/css"><!-- 29 pre.display { font-family:inherit } 30 pre.format { font-family:inherit } 31 pre.smalldisplay { font-family:inherit; font-size:smaller } 32 pre.smallformat { font-family:inherit; font-size:smaller } 33 pre.smallexample { font-size:smaller } 34 pre.smalllisp { font-size:smaller } 35 span.sc { font-variant:small-caps } 36 span.roman { font-family:serif; font-weight:normal; } 37 span.sansserif { font-family:sans-serif; font-weight:normal; } 38--></style> 39<link rel="stylesheet" type="text/css" href="../cs.css"> 40</head> 41<body> 42<div class="node"> 43<a name="W"></a> 44<p> 45Next: <a rel="next" accesskey="n" href="Z.html#Z">Z</a>, 46Previous: <a rel="previous" accesskey="p" href="v.html#v">v</a>, 47Up: <a rel="up" accesskey="u" href="Invoking.html#Invoking">Invoking</a> 48<hr> 49</div> 50 51<h3 class="section">2.16 Control Warnings: <samp><span class="option">-W</span></samp>, <samp><span class="option">--warn</span></samp>, <samp><span class="option">--no-warn</span></samp>, <samp><span class="option">--fatal-warnings</span></samp></h3> 52 53<p><samp><span class="command">as</span></samp> should never give a warning or error message when 54assembling compiler output. But programs written by people often 55cause <samp><span class="command">as</span></samp> to give a warning that a particular assumption was 56made. All such warnings are directed to the standard error file. 57 58 <p><a name="index-g_t_002dW-101"></a><a name="index-g_t_002d_002dno_002dwarn-102"></a><a name="index-suppressing-warnings-103"></a><a name="index-warnings_002c-suppressing-104"></a>If you use the <samp><span class="option">-W</span></samp> and <samp><span class="option">--no-warn</span></samp> options, no warnings are issued. 59This only affects the warning messages: it does not change any particular of 60how <samp><span class="command">as</span></samp> assembles your file. Errors, which stop the assembly, 61are still reported. 62 63 <p><a name="index-g_t_002d_002dfatal_002dwarnings-105"></a><a name="index-errors_002c-caused-by-warnings-106"></a><a name="index-warnings_002c-causing-error-107"></a>If you use the <samp><span class="option">--fatal-warnings</span></samp> option, <samp><span class="command">as</span></samp> considers 64files that generate warnings to be in error. 65 66 <p><a name="index-g_t_002d_002dwarn-108"></a><a name="index-warnings_002c-switching-on-109"></a>You can switch these options off again by specifying <samp><span class="option">--warn</span></samp>, which 67causes warnings to be output as usual. 68 69 </body></html> 70 71