blob: f8c5a210153d5f0d25f89ca9a67e7e1ba2c32918 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>osclconfig_compiler_warnings.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>osclconfig_compiler_warnings.h</h1><a href="osclconfig__compiler__warnings_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00003
00004 <span class="comment">// O S C L C O N F I G _ C O M P I L E R _ W A R N I N G S</span>
00005
00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00007
00008
00014 <span class="comment">// This macro enables the "#pragma GCC system_header" found in any header file that</span>
00015 <span class="comment">// includes this config file.</span>
00016 <span class="comment">// "#pragma GCC system_header" suppresses compiler warnings in the rest of that header</span>
00017 <span class="comment">// file by treating the header as a system header file.</span>
00018 <span class="comment">// For instance, foo.h has 30 lines, "#pragma GCC system_header" is inserted at line 10,</span>
00019 <span class="comment">// from line 11 to the end of file, all compiler warnings are disabled.</span>
00020 <span class="comment">// However, this does not affect any files that include foo.h.</span>
00021 <span class="comment">// Currently, oscl_defalloc.h and oscl_mem.h uses #pragma GCC system_header</span>
00022 <span class="comment">// This is meant to be a temporary fix until the root cause of the compiler warnings</span>
00023 <span class="comment">// can be resolved properly</span>
00024 <span class="comment">//</span>
00025 <span class="preprocessor">#ifdef __GNUC__</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_DISABLE_GCC_WARNING_SYSTEM_HEADER</span>
00027 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00028 <span class="preprocessor"></span>
<a name="l00029"></a><a class="code" href="osclconfig__compiler__warnings_8h.html#a0">00029</a> <span class="preprocessor">#define OSCL_FUNCTION_PTR(x) (&amp;x)</span>
00030 <span class="preprocessor"></span>
</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>