Skip to content

libssh: myards of warnings when compiling with libssh #6847

Description

@cvengler

I did this

Compiling curl with ./configure CC=clang --enable-debug --with-libssh --prefix=$HOME/tmp

vssh/libssh.c:706:47: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
        MOVE_TO_ERROR_STATE(CURLE_FAILED_INIT);
                                              ^
vssh/libssh.c:716:60: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
        MOVE_TO_ERROR_STATE(CURLE_PEER_FAILED_VERIFICATION);
                                                           ^
vssh/libssh.c:737:50: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
          MOVE_TO_ERROR_STATE(CURLE_LOGIN_DENIED);
                                                 ^
vssh/libssh.c:755:50: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
          MOVE_TO_ERROR_STATE(CURLE_LOGIN_DENIED);
                                                 ^
vssh/libssh.c:762:31: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
        MOVE_TO_SECONDARY_AUTH;
...

I expected the following

No warnings regarding unnecessary semicolons

curl/libcurl version

curl: f573998
libssh: 0.9.5

operating system

FreeBSD freebsd 12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4 GENERIC amd64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions