Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Feb 14, 2024
1 parent 287ca06 commit 16fce9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ endif ()
set(CMAKE_VERBOSE_MAKEFILE ON)
if (UNIX)
# Linux and OSX
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -std=gnu99 -g -fPIC -Wno-error=deprecated-declarations -D_LARGEFILE64_SOURCE ${MOCK_OBJECT_WRAPPER_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -std=gnu++11 -fPIC -Wno-error=deprecated-declarations ${MOCK_OBJECT_WRAPPER_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -std=gnu99 -g -fPIC -Werror -Wno-error=deprecated-declarations -D_LARGEFILE64_SOURCE ${MOCK_OBJECT_WRAPPER_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -std=gnu++11 -fPIC -Werror -Wno-error=deprecated-declarations ${MOCK_OBJECT_WRAPPER_FLAGS}")
else()
# Windows
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /ZH:SHA_256 /guard:cf /Qspectre /sdl")
Expand Down
1 change: 0 additions & 1 deletion cpp/FileTransferAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,6 @@ RemoteStorageRequestOutcome Snowflake::Client::FileTransferAgent::downloadSingle
}
catch (...) {
std::string err = "Could not open file " + fileMetadata->destPath + " to downoad";
sf_strerror(errno);//test code, will remove soon before merging
char* str_error = sf_strerror_s(errno, strerr_buf, sizeof(strerr_buf));
CXX_LOG_DEBUG("Could not open file %s to downoad: %s",
fileMetadata->destPath.c_str(), str_error);
Expand Down
2 changes: 1 addition & 1 deletion include/snowflake/Simba_CRTFunctionSafe.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
#if defined(_MSC_VER)
#define SF_MACRO_DEPRECATED_WARNING(MSG) __pragma(message ( __FILE__ "(" MACRO_TO_STRING(__LINE__) ") : warning C4996: " MSG))
#else
#define SF_MACRO_DEPRECATED_WARNING(MSG) _Pragma(MACRO_TO_STRING(GCC warning OLD " "is deprecated, please use NEW instead.))
#define SF_MACRO_DEPRECATED_WARNING(MSG) _Pragma(MACRO_TO_STRING(GCC warning MSG))
#endif

// sf_getenv and sf_strerror is unsafe and deprecated.
Expand Down

0 comments on commit 16fce9b

Please sign in to comment.