| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_COMPILER_SPECIFIC_H_ | 5 #ifndef BASE_COMPILER_SPECIFIC_H_ |
| 6 #define BASE_COMPILER_SPECIFIC_H_ | 6 #define BASE_COMPILER_SPECIFIC_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(COMPILER_MSVC) | 10 #if defined(COMPILER_MSVC) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #define MSVC_PUSH_WARNING_LEVEL(n) | 60 #define MSVC_PUSH_WARNING_LEVEL(n) |
| 61 #define MSVC_POP_WARNING() | 61 #define MSVC_POP_WARNING() |
| 62 #define MSVC_DISABLE_OPTIMIZE() | 62 #define MSVC_DISABLE_OPTIMIZE() |
| 63 #define MSVC_ENABLE_OPTIMIZE() | 63 #define MSVC_ENABLE_OPTIMIZE() |
| 64 #define ALLOW_THIS_IN_INITIALIZER_LIST(code) code | 64 #define ALLOW_THIS_IN_INITIALIZER_LIST(code) code |
| 65 | 65 |
| 66 #endif // COMPILER_MSVC | 66 #endif // COMPILER_MSVC |
| 67 | 67 |
| 68 | 68 |
| 69 #if defined(COMPILER_GCC) | 69 #if defined(COMPILER_GCC) |
| 70 #define ALLOW_UNUSED __attribute__((unused)) |
| 70 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) | 71 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| 71 #else // Not GCC | 72 #else // Not GCC |
| 73 #define ALLOW_UNUSED |
| 72 #define WARN_UNUSED_RESULT | 74 #define WARN_UNUSED_RESULT |
| 73 #endif | 75 #endif |
| 74 | 76 |
| 75 #endif // BASE_COMPILER_SPECIFIC_H_ | 77 #endif // BASE_COMPILER_SPECIFIC_H_ |
| OLD | NEW |