Compilation fixes

This commit is contained in:
enWILLYado 2018-03-07 23:26:41 +01:00
parent 8a51590d7d
commit 82da84d849
2 changed files with 3 additions and 7 deletions

View file

@ -274,14 +274,8 @@ Options::Options(int argc, char** argv) :
{
break;
}
if(optarg == NULL)
{
fprintf(stderr, "Unsupported option argument %d: #%d '%s'\n",
key, argc, argv[argc - 1]);
continue;
}
if(!parseArg(key, optarg))
if(!parseArg(key, optarg == NULL ? "" : optarg))
{
return;
}

View file

@ -317,6 +317,7 @@ static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output)
}
#if ! defined _WIN64 && defined _WIN32
#if defined(_MSC_VER) && _MSC_VER < 1900
static inline __m128i _mm_set_epi64x(const uint64_t __a, const uint64_t __b)
{
__m128i ret;
@ -325,6 +326,7 @@ static inline __m128i _mm_set_epi64x(const uint64_t __a, const uint64_t __b)
return ret;
}
#endif
#endif
template<size_t ITERATIONS, size_t MEM, size_t MASK, bool SOFT_AES>
inline void cryptonight_hash(const void* __restrict__ input, size_t size, void* __restrict__ output,