diff options
-rw-r--r-- | src/mongo/platform/compiler.h | 9 | ||||
-rw-r--r-- | src/mongo/platform/compiler_gcc.h | 2 | ||||
-rw-r--r-- | src/mongo/platform/compiler_msvc.h | 2 |
3 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/platform/compiler.h b/src/mongo/platform/compiler.h index 25bb38678cd..0774eb82646 100644 --- a/src/mongo/platform/compiler.h +++ b/src/mongo/platform/compiler.h @@ -52,15 +52,6 @@ * Correct: MONGO_COMPILER_NORETURN void myAbortFunction(); * * - * MONGO_COMPILER_VARIABLE_UNUSED - * - * Instructs the compiler not to warn if it detects no use of the decorated variable. - * Typically only useful for variables that are always declared but only used in - * conditionally-compiled code. - * - * Correct: MONGO_COMPILER_VARIABLE_UNUSED int ignored; - * - * * MONGO_COMPILER_ALIGN_TYPE(ALIGNMENT) * * Instructs the compiler to use the given minimum alignment for the decorated type. diff --git a/src/mongo/platform/compiler_gcc.h b/src/mongo/platform/compiler_gcc.h index 9f9ee2eb48b..555ea6ccfca 100644 --- a/src/mongo/platform/compiler_gcc.h +++ b/src/mongo/platform/compiler_gcc.h @@ -62,8 +62,6 @@ #endif -#define MONGO_COMPILER_VARIABLE_UNUSED __attribute__((__unused__)) - #define MONGO_COMPILER_ALIGN_TYPE(ALIGNMENT) __attribute__((__aligned__(ALIGNMENT))) #define MONGO_COMPILER_ALIGN_VARIABLE(ALIGNMENT) __attribute__((__aligned__(ALIGNMENT))) diff --git a/src/mongo/platform/compiler_msvc.h b/src/mongo/platform/compiler_msvc.h index 72d21100f1c..046cb41e809 100644 --- a/src/mongo/platform/compiler_msvc.h +++ b/src/mongo/platform/compiler_msvc.h @@ -42,8 +42,6 @@ #define MONGO_COMPILER_NORETURN __declspec(noreturn) -#define MONGO_COMPILER_VARIABLE_UNUSED - #define MONGO_COMPILER_ALIGN_TYPE(ALIGNMENT) __declspec(align(ALIGNMENT)) #define MONGO_COMPILER_ALIGN_VARIABLE(ALIGNMENT) __declspec(align(ALIGNMENT)) |