Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosal committed Nov 24, 2021
1 parent 3ccbf26 commit 5ba0c6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ message(STATUS "CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS "CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")

find_package(Git QUIET)
if (${GIT_FOUND})
if(${GIT_FOUND})
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_BRANCH
Expand Down
4 changes: 2 additions & 2 deletions include/mxnet/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,14 +555,14 @@ MXNET_DLL int MXGetVersion(int* out);
* \param pointer to the string holding the branch name
* \return 0 when success, -1 when failure happens
*/
MXNET_DLL int MXGetBranch(const char **out);
MXNET_DLL int MXGetBranch(const char** out);

/*!
* \brief get the MXNet library commit hash at build time, usually provided by cmake
* \param pointer to the string holding the commit hash
* \return 0 when success, -1 when failure happens
*/
MXNET_DLL int MXGetCommitHash(const char **out);
MXNET_DLL int MXGetCommitHash(const char** out);

/*!
* \brief Load TVM operator from the binary library
Expand Down
4 changes: 2 additions & 2 deletions src/c_api/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1958,13 +1958,13 @@ int MXGetVersion(int* out) {
API_END();
}

int MXGetBranch(const char **out) {
int MXGetBranch(const char** out) {
API_BEGIN();
*out = MXNET_BRANCH;
API_END();
}

int MXGetCommitHash(const char **out) {
int MXGetCommitHash(const char** out) {
API_BEGIN();
*out = MXNET_COMMIT_HASH;
API_END();
Expand Down

0 comments on commit 5ba0c6a

Please sign in to comment.