Skip to content

Commit

Permalink
removing Windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dnewman-gpsw committed Nov 19, 2017
1 parent e6f4f88 commit 1eb2cb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Codec/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ int Lookup(const char *keyword,

for (i = 0; i < token_table_length; i++)
{
#ifdef _WINDOWS
if (0 == stricmp(keyword, token_table[i].string))
#ifdef _MSC_VER
if (0 == _stricmp(keyword, token_table[i].string))
#else
if (0 == strcasecmp(keyword, token_table[i].string))
#endif
Expand Down
1 change: 0 additions & 1 deletion Codec/thumbnail.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ bool GenerateThumbnail(void *sample_ptr,
if (ParseSampleHeader(&input, &header))
{
uint32_t *yptr;
uint32_t *yptr2;
uint16_t *uptr16;
uint16_t *vptr16;
uint32_t *gptr;
Expand Down
4 changes: 2 additions & 2 deletions DecoderSDK/SampleMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ void InitGetLUTPaths(char *pPathStr, size_t pathSize, char *pDBStr, size_t DBSiz
}
}

strncpy(pPathStr, defaultLUTpath, 259);
strncpy(pDBStr, DbNameStr, 63);
strncpy_s(pPathStr, pathSize, defaultLUTpath, 259);
strncpy_s(pDBStr, DBSize, DbNameStr, 63);

#elif __APPLE_REMOVE__

Expand Down

0 comments on commit 1eb2cb7

Please sign in to comment.