Skip to content

Commit

Permalink
fixed issues when bedrock is compiled without ssg, mona, or abt-io
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Feb 15, 2024
1 parent 4d16d1a commit 1de86a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ABTioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ABTioManager::addABTioInstance(const std::string& name,
const json& config) {
#ifndef ENABLE_ABT_IO
(void)name;
(void)pool_name;
(void)pool;
(void)config;
throw DETAILED_EXCEPTION("Bedrock was not compiled with ABT-IO support");
#else
Expand Down
2 changes: 1 addition & 1 deletion src/MonaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ MonaManager::addMonaInstance(const std::string& name,
const std::string& address) {
#ifndef ENABLE_MONA
(void)name;
(void)pool_name;
(void)pool;
(void)address;
throw DETAILED_EXCEPTION("Bedrock wasn't compiled with MoNA support");
#else
Expand Down
6 changes: 3 additions & 3 deletions src/SSGManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SSGUpdateHandler {

SSGManager::SSGManager(const MargoManager& margo,
const Jx9Manager& jx9,
const json& config)
const json& config)
: self(std::make_shared<SSGManagerImpl>()) {
self->m_margo_manager = margo;
self->m_jx9_manager = jx9;
Expand Down Expand Up @@ -138,7 +138,7 @@ SSGManager::addGroup(const std::string& name,
(void)name;
(void)config;
(void)pool;
(void)bootstrap_method;
(void)bootstrap;
(void)group_file;
throw DETAILED_EXCEPTION("Bedrock wasn't compiled with SSG support");
return nullptr;
Expand Down Expand Up @@ -309,7 +309,7 @@ SSGManager::addGroup(const std::string& name,
std::shared_ptr<NamedDependency>
SSGManager::addGroupFromJSON(const json& description) {
#ifndef ENABLE_SSG
(void)config;
(void)description;
throw DETAILED_EXCEPTION("Bedrock wasn't compiled with SSG support");
return 0;
#else // ENABLE_SSG
Expand Down

0 comments on commit 1de86a4

Please sign in to comment.