]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Format C++ feature test files
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 22:28:54 +0000 (23:28 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 22:28:54 +0000 (23:28 +0100)
meson/atomics/atomic_add_fetch.cc
meson/cxx-fs/cxx-fs.cc
meson/libcrypto/bn_new.cc
meson/pkcs11/p11_kit_module_for_name.cc
meson/pthread-setname/pthread_set_name_np_void_2args.cc
meson/pthread-setname/pthread_setname_np_1arg.cc
meson/pthread-setname/pthread_setname_np_3args.cc
meson/sanitizers/address-sanitizer-fiber-switching/sanitizer_finish_switch_fiber_1ptr.cc
meson/sanitizers/address-sanitizer-fiber-switching/sanitizer_finish_switch_fiber_3ptrs.cc
meson/timet-sign/timet_sign.cc

index 6cd55e8a51dc2f52f89c6f2fa75a2d78e628762f..0f560d3e18ab5d8c263f2c5d12f961eb4a0faeaf 100644 (file)
@@ -1,6 +1,7 @@
-#include <stdint.h>
+#include <cstdint>
 
-int main() {
+int main()
+{
   uint64_t val = 0;
   __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);
   return 0;
index 0b87fb3be4d7a17dd35c21aaf17693c5d9dc244f..6da7d25aa457d0196a2aa052c8a3e58e573e0266 100644 (file)
@@ -1,7 +1,7 @@
-#include <iostream>
 #include <filesystem>
 
-int main() {
+int main()
+{
   std::filesystem::path path(".");
   [[maybe_unused]] std::filesystem::file_status status = std::filesystem::status(path);
   return 0;
index 31e0e4f464c6233ec2cb5ee3afc7aaacca7d70e4..194d9a66dfc03414deb74fe8237ee2619fb7bf5f 100644 (file)
@@ -1,6 +1,7 @@
 #include <openssl/bn.h>
 
-int main() {
+int main()
+{
   BN_new();
   return 0;
 }
index 2bae1d3643bc709f61bf869bb954b242fd6cd9c4..9ac2227330f7e8797f15356b6e4dd8e3fa1af7f0 100644 (file)
@@ -1,6 +1,7 @@
 #include <p11-kit/p11-kit.h>
 
-int main() {
-    void *foo = p11_kit_module_for_name(0, 0);
-    return 0;
+int main()
+{
+  __attribute__((unused)) void* foo = p11_kit_module_for_name(nullptr, nullptr);
+  return 0;
 }
index 8aa1bff88408cbbb5e0ded4597bfe77c3e950aea..7c26bbde33c068bbcf9a05c62ea68d2a6febfe0f 100644 (file)
@@ -3,7 +3,8 @@
 #include <pthread_np.h>
 #endif
 
-int main() {
+int main()
+{
   pthread_set_name_np(pthread_self(), "foo");
   return 0;
 }
index 05d92064606c5cc5f556abcfff1225690826d59a..d82b9ac94569f8f1cf944164860dd097d57fd042 100644 (file)
@@ -3,6 +3,7 @@
 #include <pthread_np.h>
 #endif
 
-int main() {
+int main()
+{
   return pthread_setname_np("foo");
 }
index 9988d9a60ab756788210a9cb143982f2d5dddb70..fea912e667b016d13d250bc5e9597592fbaf54d2 100644 (file)
@@ -3,6 +3,7 @@
 #include <pthread_np.h>
 #endif
 
-int main() {
+int main()
+{
   return pthread_setname_np(pthread_self(), "foo", NULL);
 }
index 029b46d3e36e657e55b441f2e32a9b60222fbaf4..80f453b26ff32e46c53f257136a151a67300ede6 100644 (file)
@@ -1,6 +1,7 @@
 #include <sanitizer/common_interface_defs.h>
 
-int main() {
+int main()
+{
   __sanitizer_finish_switch_fiber(nullptr);
   return 0;
 }
index fae9756c1207e94f7b07082c622a61700bd8877e..3c0ca7d950adb9136f80d14c658122614afa9fed 100644 (file)
@@ -1,6 +1,7 @@
 #include <sanitizer/common_interface_defs.h>
 
-int main() {
+int main()
+{
   __sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr);
   return 0;
 }
index f954bfaf6dd1b45196355acde1287be20448c7e3..3df08954786c1e74ef5f4d3c1f0e0e22b17b1a14 100644 (file)
@@ -1,7 +1,8 @@
 #include <sys/types.h>
 
-int main() {
-  int foo[1 - 2 * !(((time_t) -1) < 0)];
+int main()
+{
+  int foo[1 - 2 * !(((time_t)-1) < 0)];
   (void)foo[0];
   return 0;
 }