Skip to content

[OpenSSL]:'may be used uninitialized' warning #1083

@rahmanih

Description

@rahmanih

Hi,
when configuring libssh2 with high optimization, the gcc throws the following error:

/home/rahmanih/github/libssh2/src/openssl.c:381:19: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  381 |         *out_type = type;
      |         ~~~~~~~~~~^~~~~~

regards
Haithem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions