]> git.ipfire.org Git - thirdparty/curl.git/commit
misc: fix "warning: empty expression statement has no effect"
authorDaniel Stenberg <daniel@haxx.se>
Sat, 26 Dec 2020 14:43:25 +0000 (15:43 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 26 Dec 2020 22:44:17 +0000 (23:44 +0100)
commit8ab78f720ae478d533e30b202baec4b451741579
treef476fa9496db2c92f32918acd66194b315b802c0
parentec424f311aabfd34df1833878503236505e51656
misc: fix "warning: empty expression statement has no effect"

Turned several macros into do-while(0) style to allow their use to work
find with semicolon.

Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45433279
Follow-up to 08e8455dddc5e4
Reported-by: Gisle Vanem
Closes #6376
lib/conncache.h
lib/http_aws_sigv4.c
lib/smb.c
lib/transfer.c
lib/url.c
lib/urlapi.c
lib/vauth/digest.c
lib/vtls/vtls.c
src/tool_formparse.c
src/tool_operate.c
src/tool_writeout_json.c