[AIX] Fix Compiler Flags and Bugs on AIX to Pass All Tests (#3219)

* Fixing compiler warnings

* Replace the old -s flag with the -Wl,-s flag

* Fixing compiler warnings

* Fixing the linker strip flag and tests/code not working as expected on AIX
This commit is contained in:
Qiongsi Wu
2022-07-29 12:21:59 -07:00
committed by GitHub
parent ec5fdcde19
commit b1bbb0eb4c
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ int DiB_trainFromFiles(const char* dictFileName, size_t maxDictSize,
}
/* Checks */
if ((!sampleSizes) || (!srcBuffer) || (!dictBuffer))
if ((fs.nbSamples && !sampleSizes) || (!srcBuffer) || (!dictBuffer))
EXM_THROW(12, "not enough memory for DiB_trainFiles"); /* should not happen */
if (fs.oneSampleTooLarge) {
DISPLAYLEVEL(2, "! Warning : some sample(s) are very large \n");