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

CI: Suppress Visual C security warnings #138

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ endif()

if(MSVC)
add_compile_definitions(NOMINMAX _COMPLEX_DEFINED)
# suppress compiler warnings that sprintf and similar functions are unsafe (e.g. C4996)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()

######################################################################
Expand Down
2 changes: 1 addition & 1 deletion EXAMPLE/dlinsol.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int main(int argc, char *argv[])
dCreate_CompCol_Matrix(&A, m, n, nnz, a, asub, xa, SLU_NC, SLU_D, SLU_GE);
Astore = A.Store;
printf("Dimension %dx%d; # nonzeros %d\n", (int)A.nrow, (int)A.ncol, (int)Astore->nnz);
printf("sizeof(int_t) %lu\n", sizeof(int_t));
printf("sizeof(int_t) %zu\n", sizeof(int_t));

nrhs = 1;
if ( !(rhs = doubleMalloc(m * nrhs)) ) ABORT("Malloc fails for rhs[].");
Expand Down