1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3<title>osclconfig_compiler_warnings.h Source File</title> 4<link href="doxygen.css" rel="stylesheet" type="text/css"> 5</head><body> 6<!-- Generated by Doxygen 1.2.18 --> 7<center> 8<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9<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> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <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> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600008 1700014 <span class="comment">// This macro enables the "#pragma GCC system_header" found in any header file that</span> 1800015 <span class="comment">// includes this config file.</span> 1900016 <span class="comment">// "#pragma GCC system_header" suppresses compiler warnings in the rest of that header</span> 2000017 <span class="comment">// file by treating the header as a system header file.</span> 2100018 <span class="comment">// For instance, foo.h has 30 lines, "#pragma GCC system_header" is inserted at line 10,</span> 2200019 <span class="comment">// from line 11 to the end of file, all compiler warnings are disabled.</span> 2300020 <span class="comment">// However, this does not affect any files that include foo.h.</span> 2400021 <span class="comment">// Currently, oscl_defalloc.h and oscl_mem.h uses #pragma GCC system_header</span> 2500022 <span class="comment">// This is meant to be a temporary fix until the root cause of the compiler warnings</span> 2600023 <span class="comment">// can be resolved properly</span> 2700024 <span class="comment">//</span> 2800025 <span class="preprocessor">#ifdef __GNUC__</span> 2900026 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_DISABLE_GCC_WARNING_SYSTEM_HEADER</span> 3000027 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 3100028 <span class="preprocessor"></span> 32<a name="l00029"></a><a class="code" href="osclconfig__compiler__warnings_8h.html#a0">00029</a> <span class="preprocessor">#define OSCL_FUNCTION_PTR(x) (&x)</span> 3300030 <span class="preprocessor"></span> 34</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 35<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 36</small></address> 37</body> 38</html> 39