Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# osclconfig_compiler_warnings.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00003
    00004 //       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
    00005
    00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00007
    00008
    00014 // This macro enables the "#pragma GCC system_header" found in any header file that
    00015 // includes this config file.
    00016 // "#pragma GCC system_header" suppresses compiler warnings in the rest of that header
    00017 // file by treating the header as a system header file.
    00018 // For instance, foo.h has 30 lines, "#pragma GCC system_header" is inserted at line 10,
    00019 // from line 11 to the end of file, all compiler warnings are disabled.
    00020 // However, this does not affect any files that include foo.h.
    00021 // Currently, oscl_defalloc.h and oscl_mem.h uses #pragma GCC system_header
    00022 // This is meant to be a temporary fix until the root cause of the compiler warnings
    00023 // can be resolved properly
    00024 //
    00025 #ifdef __GNUC__
    00026 #define OSCL_DISABLE_GCC_WARNING_SYSTEM_HEADER
    00027 #endif
    00028
    00029 #define OSCL_FUNCTION_PTR(x) (&x)
    00030