You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
...
This enforces the usage of semicolons when using CPP macros. We
currently use semicolons anyway, however this leads to certain warnings
on certain compilers.
Fixescurl#6847Closescurl#6848
... by fixing macros to do-while constructs and moving out the calls to
"break" outside of the actual macro. It also fixes the problem where the
macro was used witin a loop and the break didn't do right.
Reported-by: Emil Engler
Fixes#6847
I did this
Compiling curl with
./configure CC=clang --enable-debug --with-libssh --prefix=$HOME/tmp
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
The text was updated successfully, but these errors were encountered: