mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
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:
parent
8643f3ebbb
commit
db05436fc0
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue