Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CMake file and use vsnprintf to avoid compiling errors #673

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

nychiang
Copy link
Collaborator

  1. Compiler flags -Wall and -Werror are only used in the debug mode;
  2. Change vsprintf to vsnprintf, otherwise when -Werror is given, we got multiple errors such as
/hiop/src/Utils/hiopLogger.cpp:147:3: error: 'vsprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Werror,-Wdeprecated-declarations]
  vsprintf(buff_,format, args);

@jaelynlitz @cameronrutherford @cnpetra

@nychiang nychiang mentioned this pull request Nov 28, 2023
5 tasks
@@ -105,7 +105,9 @@ if(NOT "${HIOP_EXTRA_LINK_FLAGS}" STREQUAL "")
endif()

if(HIOP_USE_MPI)
find_package(MPI REQUIRED)
find_package(MPI REQUIRED COMPONENTS C CXX Fortran)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if ExaGO should have this...

Copy link
Collaborator

@jaelynlitz jaelynlitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch has built successfully on Incline!

@cnpetra cnpetra merged commit 2378fde into develop Nov 30, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants