Skip to content

Commit be680aa

Browse files
authored
Merge pull request #72 from thewtex/windows-warnings
Windows warnings
2 parents 5a03b82 + f134715 commit be680aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ set( PerformanceBenchmarking_SRCS
6464
PerformanceBenchmarkingUtilities.cxx
6565
${CMAKE_BINARY_DIR}/PerformanceBenchmarkingInformation.h)
6666

67+
if(MSVC)
68+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
69+
endif()
6770
itk_module_add_library(PerformanceBenchmarking ${PerformanceBenchmarking_SRCS})

src/PerformanceBenchmarkingUtilities.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo ${ITKPERFORMANCEBENCHMARK_AUX_JSON}
4545
*/
4646
static std::string getEnvJsonMap()
4747
{
48-
char * auxEnvironmentJson = getenv( "ITKPERFORMANCEBENCHMARK_AUX_JSON" );
48+
const char * auxEnvironmentJson = itksys::SystemTools::GetEnv( "ITKPERFORMANCEBENCHMARK_AUX_JSON" );
4949
if ( auxEnvironmentJson != nullptr )
5050
{
5151
jsonxx::Object auxEnvironmentObject;

0 commit comments

Comments
 (0)