User/orilevari/32bit comparison warning (#2800)

* use correct type for for loop

* explicitly specify void for parameters of OrtGetApiBase because the function is defined in c, so when the function is just (), it is interpreted as having an unknown number of parameters. This was causing compiler warning C4276.
This commit is contained in:
Ori Levari 2020-01-08 15:04:59 -08:00 committed by Changming Sun
parent 8643f3ebbb
commit db05436fc0
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ struct OrtApiBase {
};
typedef struct OrtApiBase OrtApiBase;
ORT_EXPORT const OrtApiBase* ORT_API_CALL OrtGetApiBase() NO_EXCEPTION;
ORT_EXPORT const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION;
struct OrtApi {
/**

View file

@ -1460,7 +1460,7 @@ ORT_API(const char*, OrtApis::GetVersionString) {
return ORT_VERSION;
}
const OrtApiBase* ORT_API_CALL OrtGetApiBase() NO_EXCEPTION {
const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION {
return &ort_api_base;
}