From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001
From: Sadie Powell
Date: Sun, 4 Apr 2021 23:42:15 +0100
Subject: Fix a ton of pedantic compiler warnings.
---
src/modules/m_sha2.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/modules/m_sha2.cpp')
diff --git a/src/modules/m_sha2.cpp b/src/modules/m_sha2.cpp
index 3c3560d5c..e3ad8a6f7 100644
--- a/src/modules/m_sha2.cpp
+++ b/src/modules/m_sha2.cpp
@@ -23,7 +23,7 @@
* along with this program. If not, see .
*/
-/// $CompilerFlags: -Ivendor_directory("sha2")
+/// $CompilerFlags: -isystem vendor_directory("sha2")
#include "inspircd.h"
@@ -43,7 +43,7 @@ class HashSHA2 : public HashProvider
std::string GenerateRaw(const std::string& data) override
{
std::vector bytes(out_size);
- SHA((unsigned char*)data.data(), data.size(), (unsigned char*)&bytes[0]);
+ SHA(reinterpret_cast(data.data()), data.size(), reinterpret_cast(&bytes[0]));
return std::string(&bytes[0], bytes.size());
}
};
--
cgit v1.3.1-10-gc9f91