{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1752771702,"commit_time":1753650125,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"fd2ca2399e79e0b821af34c7c164c830c9c6574d","message":"build: extend GNU C guards to clang where applicable, fix fallouts\n\nSome GNU C version guards implicitly include the clang compiler, because\nclang reports itself as GCC 4.2.1.\n\nThis implicit inclusion doesn't happen if the guard requires a GCC\nversion above 4.2.1.\n\nFix two such guards to explicitly include clang where it does support\nthe guarded feature:\n\n- curl/curl.h: use `typecheck-gcc.h` with clang.\n  llvm clang v14+ supports this. The corresponding Apple clang version\n  is also v14.\n  Ref: https://en.wikipedia.org/wiki/Xcode#Toolchain_versions\n  Apple clang v14 tested OK in CI:\n  https://github.com/curl/curl/actions/runs/16353901480/job/46207437204\n\n- tool_urlglib: use `__builtin_mul_overflow()` with clang v8+.\n  llvm clang v3.8+ supports this, but to accommodate for Apple clang,\n  start with v8, the Apple version having the mainline v3.8 feature set.\n\nAlso fix compile warnings triggered by the above:\n- lib1912: fix duplicate `;`:\n  ```\n  tests/libtest/lib1912.c:44:57: error: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Werror,-Wextra-semi-stmt]\n   44 |       print_err(o->name, \"CURLOT_LONG or CURLOT_VALUES\");\n      |                                                         ^\n  [...]\n  ```\n  Ref: https://github.com/curl/curl/actions/runs/16351302841/job/46198524880?pr=17955#step:12:61\n\n- lib2032: silence typcheck warning with a cast:\n  ```\n  tests/libtest/lib2032.c:145:29: error: sizeof on pointer operation will return size of 'CURL **' (aka 'void **') instead of 'CURL *[3]' (aka 'void *[3]') [-Werror,-Wsizeof-array-decay]\n    145 |                   ntlm_easy + num_handles);\n        |                   ~~~~~~~~~ ^\n  ```\n  Ref: https://github.com/curl/curl/actions/runs/16351302841/job/46198524880?pr=17955#step:12:86\n\nCloses #17955\n","parents":["b453a447ce4e6aa2a352b196fe0b080fea0342da"],"tree_hash":"abdb82984a08cb2a5501729e41885eabbe50a61a"}