core/com.nokia.carbide.cpp.compiler.doc.user/html/errors/errors.htm
author timkelly
Thu, 10 Dec 2009 13:45:47 -0600
branchRCL_2_4
changeset 671 80524b72f957
parent 0 fb279309251b
permissions -rw-r--r--
Add S60 5.2 support.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>Preventing Errors &amp; Bugs</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">
<h2>Preventing Errors &amp; Warnings </h2>
<p>The Carbide C/C++ compiler generates errors when it cannot translate your source code or generate object code due to improper syntax. </p>
<p>Like the <span class="code">lint</span> programming utility, the Carbide C/C++ compiler can generate warnings that alert you to source code that is syntactically correct but logically incorrect or ambiguous. Because these warnings are not fatal, the compiler still translates your source code. However, your program might not run as you intended.</p>
<p>This section describes these warnings:</p>
<ul>
  <li><a href="err_as_warnings.htm">Warnings as Errors</a></li>
  <li><a href="err_ill_pragmas.htm">Illegal Pragmas</a></li>
  <li><a href="err_empty_decl.htm">Empty Declarations</a></li>
  <li><a href="err_common.htm">Common Errors</a></li>
  <li><a href="err_unused_vars.htm">Unused Variables</a></li>
  <li><a href="err_unused_args.htm">Unused Arguments</a></li>
  <li><a href="err_extra_commas.htm">Extra Commas</a></li>
  <li><a href="err_suspicious_assgn.htm">Suspicious Assignments and Incorrect Function Returns</a></li>
  <li><a href="err_hidden_virtual_fn.htm">Hidden Virtual Functions</a></li>
  <li><a href="err_implicit_math.htm">Implicit Arithmetic Conversions</a>
  </li><li><a href="err_inline_fn.htm">inline Functions That Are Not Inlined</a></li>
  <li><a href="err_mixed_use.htm">Mixed Use of &lsquo;class&rsquo; and &lsquo;struct&rsquo; Keywords</a></li>
  <li><a href="err_redundent.htm">Redundant Statements</a></li>
  <li><a href="err_realigned_data.htm">Realigned Data Structures</a></li>
  <li><a href="err_ignore_fn.htm"> Ignored Function Results</a></li>
  <li><a href="err_bad_conversions.htm">Bad Conversions of Pointer Value</a></li>
</ul>
<div id="footer"><p>Copyright &copy;2006-2007 Nokia Corporation</p></div>
</body>
</html>