Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: Source/wtf/Compiler.h

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/WebSettingsImpl.cpp ('k') | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 199
200 /* WARN_UNUSED_RETURN */ 200 /* WARN_UNUSED_RETURN */
201 201
202 #if COMPILER(GCC) 202 #if COMPILER(GCC)
203 #define WARN_UNUSED_RETURN __attribute__ ((warn_unused_result)) 203 #define WARN_UNUSED_RETURN __attribute__ ((warn_unused_result))
204 #else 204 #else
205 #define WARN_UNUSED_RETURN 205 #define WARN_UNUSED_RETURN
206 #endif 206 #endif
207 207
208 /* ALLOW_UNUSED */
209
210 #if COMPILER(GCC)
211 #define ALLOW_UNUSED __attribute__((unused))
212 #else
213 #define ALLOW_UNUSED
214 #endif
215
208 /* OVERRIDE and FINAL */ 216 /* OVERRIDE and FINAL */
209 217
210 #if COMPILER_SUPPORTS(CXX_OVERRIDE_CONTROL) 218 #if COMPILER_SUPPORTS(CXX_OVERRIDE_CONTROL)
211 #define OVERRIDE override 219 #define OVERRIDE override
212 220
213 #if COMPILER_QUIRK(FINAL_IS_CALLED_SEALED) 221 #if COMPILER_QUIRK(FINAL_IS_CALLED_SEALED)
214 #define FINAL sealed 222 #define FINAL sealed
215 #else 223 #else
216 #define FINAL final 224 #define FINAL final
217 #endif 225 #endif
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 #define WTf_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 268 #define WTf_COMPILER_SUPPORTS_PRETTY_FUNCTION 1
261 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ 269 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__
262 #elif COMPILER(MSVC) 270 #elif COMPILER(MSVC)
263 #define WTf_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 271 #define WTf_COMPILER_SUPPORTS_PRETTY_FUNCTION 1
264 #define WTF_PRETTY_FUNCTION __FUNCDNAME__ 272 #define WTF_PRETTY_FUNCTION __FUNCDNAME__
265 #else 273 #else
266 #define WTF_PRETTY_FUNCTION __FUNCTION__ 274 #define WTF_PRETTY_FUNCTION __FUNCTION__
267 #endif 275 #endif
268 276
269 #endif /* WTF_Compiler_h */ 277 #endif /* WTF_Compiler_h */
OLDNEW
« no previous file with comments | « Source/web/WebSettingsImpl.cpp ('k') | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698