From b46f376f3294a8277c2e4fefec8a3a84849003d3 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 7 Oct 2017 19:23:46 +0300 Subject: [PATCH] Remove unused variables . --- CMakeLists.txt | 4 ++-- src/api/Httpd.cpp | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e861f26aa..73c4421b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,9 +186,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC) elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes -Wall") - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -funroll-loops -fmerge-all-constants -Wno-missing-braces") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -funroll-loops -fmerge-all-constants") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes -Wall -fno-exceptions -fno-rtti") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes -Wall -fno-exceptions -fno-rtti -Wno-missing-braces") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -funroll-loops -fmerge-all-constants") endif() diff --git a/src/api/Httpd.cpp b/src/api/Httpd.cpp index cb3611142..996bc0079 100644 --- a/src/api/Httpd.cpp +++ b/src/api/Httpd.cpp @@ -31,10 +31,6 @@ #include "log/Log.h" -static const char k500 [] = "{\"error\":\"INTERNAL_SERVER_ERROR\"}"; -static const size_t k500Size = sizeof(k500) - 1; - - Httpd::Httpd(int port, const char *accessToken) : m_accessToken(accessToken), m_port(port),