Skip to content

Commit

Permalink
#184 Fixed build without NVML API.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmrig committed Jul 27, 2018
1 parent 412146e commit cde3f98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/nvidia/NvmlApi.cpp
Expand Up @@ -4,8 +4,7 @@
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* Copyright 2016-2017 XMRig <support@xmrig.com>
*
* Copyright 2016-2018 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
3 changes: 1 addition & 2 deletions src/nvidia/NvmlApi.h
Expand Up @@ -4,8 +4,7 @@
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* Copyright 2016-2017 XMRig <support@xmrig.com>
*
* Copyright 2016-2018 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
7 changes: 3 additions & 4 deletions src/nvidia/NvmlApi_stub.cpp
Expand Up @@ -4,8 +4,7 @@
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* Copyright 2016-2017 XMRig <support@xmrig.com>
*
* Copyright 2016-2018 XMRig <https://github.com/xmrig>, <support@xmrig.com> *
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -39,7 +38,7 @@ void NvmlApi::release()
}


bool NvmlApi::health(int id, Health &health)
bool NvmlApi::health(int, Health &)
{
return false;
}
Expand All @@ -51,6 +50,6 @@ const char *NvmlApi::version()
}


void NvmlApi::bind(const std::vector<GpuThread*> &threads)
void NvmlApi::bind(const std::vector<xmrig::IThread*> &)
{
}

0 comments on commit cde3f98

Please sign in to comment.