Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build warning in sgx mode #45

Open
YangLiang3 opened this issue Aug 16, 2022 · 0 comments
Open

build warning in sgx mode #45

YangLiang3 opened this issue Aug 16, 2022 · 0 comments
Assignees

Comments

@YangLiang3
Copy link
Collaborator

/home/yangliang/librats/verifiers/sgx-la/main.c:23:10: warning: initialized field overwritten [-Woverride-init]
23 | .name = "sgx_la",
| ^~~~~~~~
/home/yangliang/librats/verifiers/sgx-la/main.c:23:10: note: (near initialization for ‘sgx_la_verifier_opts.name’)
/home/yangliang/librats/verifiers/sgx-la/main.c:27:21: warning: initialization of ‘rats_verifier_err_t (*)(rats_verifier_ctx_t *, attestation_evidence_t *, const uint8_t *, uint32_t, claim_t **, size_t )’ {aka ‘enum ()(struct rats_verifier_ctx *, struct attestation_evidence *, const unsigned char *, unsigned int, struct claim **, long unsigned int )’} from incompatible pointer type ‘rats_verifier_err_t ()(rats_verifier_ctx_t *, attestation_evidence_t *, uint8_t *, unsigned int, claim_t **, size_t )’ {aka ‘enum ()(struct rats_verifier_ctx *, struct attestation_evidence *, unsigned char *, unsigned int, struct claim **, long unsigned int *)’} [-Wincompatible-pointer-types]
27 | .verify_evidence = sgx_la_verify_evidence,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/yangliang/librats/verifiers/sgx-la/main.c:27:21: note: (near initialization for ‘sgx_la_verifier_opts.verify_evidence’)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants