Skip to content

Commit

Permalink
remove clang-specific logic to ignore compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pascoec committed Jun 27, 2024
1 parent 554c619 commit 0d78237
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
message (STATUS "BUILTIN_INFO_AVAILABLE is defined")
endif()

if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(IGNORE_WARNINGS "${IGNORE_WARNINGS} -Wno-unused-private-field -Wno-shift-op-parentheses")
endif()

if( WITH_NATIVEOPT )
set (NATIVE_OPT "-march=native")
else()
Expand Down
2 changes: 1 addition & 1 deletion src/binfhe/lib/binfhe-base-scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ LWECiphertext BinFHEScheme::EvalFunc(const std::shared_ptr<BinFHECryptoParams>&
LWECiphertext BinFHEScheme::EvalFloor(const std::shared_ptr<BinFHECryptoParams>& params, const RingGSWBTKey& EK,
ConstLWECiphertext& ct, const NativeInteger& beta, uint32_t roundbits) const {
const auto& LWEParams = params->GetLWEParams();
NativeInteger q{roundbits == 0 ? LWEParams->Getq() : beta * (1 << roundbits + 1)};
NativeInteger q{roundbits == 0 ? LWEParams->Getq() : beta * (1 << (roundbits + 1))};
NativeInteger mod{ct->GetModulus()};

auto ct1 = std::make_shared<LWECiphertextImpl>(*ct);
Expand Down
3 changes: 1 addition & 2 deletions src/pke/unittest/utbgvrns/UnitTestBGVrnsAdvancedSHE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ static std::vector<TEST_CASE_UTBGVRNS_SHEADVANCED> testCasesUTBGVRNS_SHEADVANCED
// clang-format on
//===========================================================================================================
class UTBGVRNS_SHEADVANCED : public ::testing::TestWithParam<TEST_CASE_UTBGVRNS_SHEADVANCED> {
using Element = DCRTPoly;
const double eps = EPSILON;
using Element = DCRTPoly;

protected:
void SetUp() {}
Expand Down

0 comments on commit 0d78237

Please sign in to comment.