summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-05-05 09:54:47 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-05 14:36:50 +0000
commit509c3958e7e3fa57e6d2aeb359bd9130318b74ba (patch)
treec1955c8d166ac19acb6d3eb9c548c119cf8a2ad7 /src/mongo/platform
parentf8ff063b74db74dc473fc5a49eb798976ac81b6a (diff)
downloadmongo-509c3958e7e3fa57e6d2aeb359bd9130318b74ba.tar.gz
SERVER-56585 remove MONGO_COMPILER_VARIABLE_UNUSED macro
This macro is no longer necessary now that we have [[maybe_unused]].
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/compiler.h9
-rw-r--r--src/mongo/platform/compiler_gcc.h2
-rw-r--r--src/mongo/platform/compiler_msvc.h2
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))