Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-03-04 13:09:32 +0300
committerRobert Adam <dev@robert-adam.de>2021-03-06 20:57:22 +0300
commitdda161138b3e48e9d1f01f7de07e4347691e9f69 (patch)
tree90df533dddec0aa06aadb5b5f4036ad21c1c0d05 /src/tests
parentd6f9e97ad64828066d5134c9d87e2673847eed79 (diff)
REFAC: Make sure all macros are #undef'd again
If they are not there is the potential of name clashes when performing a unity build. See: https://stackoverflow.com/questions/847974/the-benefits-disadvantages-of-unity-builds
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Collections.cpp3
-rw-r--r--src/tests/Hash.cpp2
-rw-r--r--src/tests/Lock.cpp2
-rw-r--r--src/tests/Resample.cpp3
-rw-r--r--src/tests/TestLink.cpp2
5 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/Collections.cpp b/src/tests/Collections.cpp
index ef6a5228d..8703ab41e 100644
--- a/src/tests/Collections.cpp
+++ b/src/tests/Collections.cpp
@@ -120,3 +120,6 @@ int main(int argc, char **argv) {
}
qWarning("QListSet: %lldus insert, %lldus iterate: %d", usins, usiter, sum);
}
+
+#undef SL
+#undef NE
diff --git a/src/tests/Hash.cpp b/src/tests/Hash.cpp
index 6f4908b04..91065721d 100644
--- a/src/tests/Hash.cpp
+++ b/src/tests/Hash.cpp
@@ -85,3 +85,5 @@ int main(int argc, char **argv) {
}
#include "Hash.moc"
+
+#undef ITER
diff --git a/src/tests/Lock.cpp b/src/tests/Lock.cpp
index 26897f5cb..c862f0ab2 100644
--- a/src/tests/Lock.cpp
+++ b/src/tests/Lock.cpp
@@ -111,3 +111,5 @@ int main(int argc, char **argv) {
}
// #include "Lock.moc"
+
+#undef ITER
diff --git a/src/tests/Resample.cpp b/src/tests/Resample.cpp
index cb0c72d90..ec0f256cd 100644
--- a/src/tests/Resample.cpp
+++ b/src/tests/Resample.cpp
@@ -131,3 +131,6 @@ int main(int argc, char **argv) {
return 0;
}
+
+#undef _USE_MATH_DEFINES
+#undef ITER
diff --git a/src/tests/TestLink.cpp b/src/tests/TestLink.cpp
index 10f1f6a28..cc2faea47 100644
--- a/src/tests/TestLink.cpp
+++ b/src/tests/TestLink.cpp
@@ -152,3 +152,5 @@ int main(int argc, char **argv) {
#endif
}
}
+
+#undef _CRT_SECURE_NO_WARNINGS