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

GCC11 compiler compatibility #11

Open
amvarunn opened this issue Jan 13, 2023 · 0 comments
Open

GCC11 compiler compatibility #11

amvarunn opened this issue Jan 13, 2023 · 0 comments

Comments

@amvarunn
Copy link

The GCC11 compiler throws the following warning.
Requesting to make necessary changes in source code to stop the warnings.
Thank you

/strongswan/davici/davici.c:797:27: error: 'req' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  797 |                 cur->next = r;
      |                 ~~~~~~~~~~^~~
/strongswan/davici/davici.c:859:32: note: 'req' was declared here
  859 |         struct davici_request *req;
      |                                ^~~
/strongswan/davici/davici.c: In function 'davici_unregister':
/strongswan/davici/davici.c:797:27: error: 'req' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  797 |                 cur->next = r;
      |                 ~~~~~~~~~~^~~
/strongswan/davici/davici.c:877:32: note: 'req' was declared here
  877 |         struct davici_request *req;
      |                                ^~~
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

1 participant