Viktor Szakats
c04504885d
src: fix potential macro confusion in cmake unity builds
...
Sources used `lib/curlx.h` with both `ENABLE_CURLX_PRINTF` set and unset
before including it.
In a cmake "unity" batch where the first included source had it unset,
the next sources did not get the macros requested with
`ENABLE_CURLX_PRINTF` because `lib/curl.x` had already been included
without them.
Fix it by by making the macros enabled permanently and globally for
internal sources, and dropping `ENABLE_CURLX_PRINTF`.
This came up while testing unity builds with smaller batches. The full,
default unity build where all `src` is bundled up in a single unit, was
not affected.
Fixes:
```
$ cmake -B build -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=15
$ make -C build
...
curl/src/tool_getparam.c: In function ‘getparameter’:
curl/src/tool_getparam.c:2409:11: error: implicit declaration of function ‘msnprintf’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
2409 | msnprintf(buffer, sizeof(buffer), "%" CURL_FORMAT_CURL_OFF_T "-",
| ^~~~~~~~~
| vsnprintf
curl/src/tool_getparam.c:2409:11: warning: nested extern declaration of ‘msnprintf’ [-Wnested-externs]
[...]
```
Reported-by: Daniel Stenberg
Bug: https://github.com/curl/curl/pull/14626#issuecomment-2301663491
Closes #14632
2024-08-22 10:45:04 +02:00
..
2024-08-15 15:30:09 +02:00
2024-08-21 08:53:11 +02:00
2024-08-20 21:34:24 +02:00
2024-08-21 07:50:31 +02:00
2024-04-08 22:46:51 +02:00
2024-08-12 13:18:10 +02:00
2024-08-12 13:18:10 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-04-24 23:29:30 +02:00
2024-08-12 19:19:28 +02:00
2024-08-12 19:19:28 +02:00
2024-07-01 22:58:55 +02:00
2024-08-14 11:34:05 +02:00
2024-03-18 12:41:56 +01:00
2024-08-03 19:53:54 +02:00
2024-08-21 03:36:50 -04:00
2024-08-03 19:53:54 +02:00
2024-08-05 08:53:55 +02:00
2024-08-21 14:33:51 +02:00
2024-08-21 14:33:51 +02:00
2024-08-05 08:53:55 +02:00
2024-08-05 08:53:55 +02:00
2024-08-17 00:32:38 +02:00
2024-08-04 19:17:45 +02:00
2024-08-20 00:44:10 +02:00
2024-04-13 08:33:26 +00:00
2024-08-08 13:48:28 +02:00
2024-04-13 08:33:26 +00:00
2024-08-04 19:17:45 +02:00
2024-08-17 10:52:53 +02:00
2024-07-01 22:58:55 +02:00
2024-07-29 14:53:43 +02:00
2024-07-29 14:53:43 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-08-20 00:44:10 +02:00
2024-08-13 09:28:27 +02:00
2024-08-13 09:28:27 +02:00
2024-07-01 22:58:55 +02:00
2024-06-05 14:02:39 +02:00
2024-08-04 19:17:45 +02:00
2024-02-07 09:22:10 +01:00
2024-02-07 09:22:10 +01:00
2024-07-01 22:58:55 +02:00
2023-11-15 20:57:49 +00:00
2023-11-22 15:42:25 +00:00
2024-05-07 02:28:10 -04:00
2024-08-04 19:17:45 +02:00
2024-08-13 09:28:27 +02:00
2024-07-13 12:00:14 +02:00
2024-05-08 10:10:12 +02:00
2024-05-08 10:10:12 +02:00
2024-08-22 00:01:29 +02:00
2024-08-03 19:53:54 +02:00
2024-04-15 16:48:34 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-13 10:04:06 +02:00
2024-08-13 10:04:06 +02:00
2024-08-20 00:44:10 +02:00
2024-08-13 10:04:06 +02:00
2024-07-01 22:58:55 +02:00
2024-06-05 00:52:24 +02:00
2024-06-05 00:52:24 +02:00
2024-08-14 11:51:55 +02:00
2024-08-14 11:51:55 +02:00
2024-08-22 10:45:04 +02:00
2024-07-01 22:58:55 +02:00
2024-04-16 15:52:10 +02:00
2024-08-03 19:53:54 +02:00
2024-04-24 04:04:25 -04:00
2024-08-14 11:21:34 +02:00
2024-08-14 11:21:34 +02:00
2024-07-01 22:58:55 +02:00
2023-12-16 13:12:37 +00:00
2024-05-27 21:15:50 +02:00
2024-07-01 22:58:55 +02:00
2024-08-17 10:52:53 +02:00
2024-07-01 22:58:55 +02:00
2024-05-28 08:12:00 +02:00
2024-06-12 09:31:17 +02:00
2024-08-01 23:03:21 +02:00
2024-08-04 19:17:45 +02:00
2024-08-12 13:18:10 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-04-11 09:00:51 +02:00
2023-11-22 15:42:25 +00:00
2024-07-01 22:58:55 +02:00
2024-08-15 09:02:58 +02:00
2024-08-03 19:53:54 +02:00
2024-08-15 08:54:19 +02:00
2024-08-15 08:54:19 +02:00
2024-08-12 13:18:10 +02:00
2024-08-12 13:18:10 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:51:02 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-15 08:54:19 +02:00
2024-08-04 19:17:45 +02:00
2024-08-12 13:18:10 +02:00
2024-08-12 13:18:10 +02:00
2024-06-05 14:02:39 +02:00
2024-08-21 03:36:50 -04:00
2024-08-13 10:04:06 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-12 19:16:54 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-06-10 13:08:12 +02:00
2024-08-17 10:52:53 +02:00
2024-07-01 22:58:55 +02:00
2024-08-07 14:59:07 +02:00
2024-04-17 00:24:09 +02:00
2024-08-09 10:45:40 +02:00
2024-04-30 14:22:11 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-06-05 14:02:39 +02:00
2024-08-04 19:17:45 +02:00
2023-12-18 14:56:57 +00:00
2024-08-07 15:13:07 +02:00
2024-08-04 19:17:45 +02:00
2024-05-22 08:38:12 +02:00
2024-08-12 13:18:10 +02:00
2024-08-12 13:18:10 +02:00
2024-08-16 16:05:36 +02:00
2024-08-12 14:56:41 +02:00
2024-04-24 14:30:37 +02:00
2024-08-16 16:05:36 +02:00
2024-07-19 18:27:30 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-09 10:45:40 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:53:54 +02:00
2024-01-27 12:42:19 +01:00
2024-08-17 10:52:53 +02:00
2024-08-17 10:52:53 +02:00
2024-08-17 10:52:53 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-06-01 12:25:13 +02:00
2024-08-03 19:53:54 +02:00
2024-02-28 11:28:10 +01:00
2024-07-01 22:58:55 +02:00
2024-08-19 23:31:38 +02:00
2024-08-08 17:52:25 +02:00
2024-07-01 22:58:55 +02:00
2024-04-11 09:29:21 +02:00
2024-08-15 09:02:58 +02:00
2024-08-02 11:17:44 +02:00
2024-08-20 00:44:10 +02:00
2024-08-03 19:49:15 +02:00
2024-07-01 22:58:55 +02:00
2024-08-15 09:02:58 +02:00
2024-08-14 11:34:05 +02:00
2024-07-01 22:58:55 +02:00
2024-06-12 16:04:53 +02:00
2024-08-04 19:17:45 +02:00
2024-06-10 13:11:05 +02:00
2024-07-15 23:47:33 +02:00
2024-06-13 15:13:43 +02:00
2024-08-21 14:33:51 +02:00
2024-05-12 17:27:51 +02:00
2024-07-27 00:17:13 +02:00
2024-08-15 15:30:09 +02:00
2024-08-04 19:17:45 +02:00
2024-08-13 10:04:06 +02:00
2024-08-15 08:54:19 +02:00
2024-07-01 22:58:55 +02:00
2024-08-17 10:52:53 +02:00
2024-08-04 19:17:45 +02:00
2024-03-04 08:42:56 +01:00
2024-08-14 11:51:55 +02:00
2024-03-04 08:42:56 +01:00
2024-04-13 08:33:26 +00:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-08-03 19:53:54 +02:00
2024-08-03 19:53:54 +02:00
2024-08-03 19:53:54 +02:00
2024-08-16 09:12:13 +02:00
2024-08-16 09:12:13 +02:00
2024-07-01 22:58:55 +02:00
2023-12-08 17:22:33 +01:00
2023-12-08 17:22:33 +01:00
2024-07-01 22:58:55 +02:00
2023-11-22 15:42:25 +00:00
2024-07-01 22:58:55 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 16:45:17 +02:00
2024-08-04 19:17:45 +02:00
2024-06-26 10:05:32 +02:00
2024-08-04 19:17:45 +02:00
2024-08-15 15:30:09 +02:00
2023-11-22 07:44:05 +01:00
2023-11-22 15:42:25 +00:00
2024-07-01 16:45:17 +02:00
2024-08-04 19:17:45 +02:00
2024-08-17 10:52:53 +02:00
2024-08-17 10:52:53 +02:00
2024-08-17 10:52:53 +02:00
2024-06-26 08:33:17 +02:00
2024-05-27 21:15:50 +02:00
2024-08-04 19:17:45 +02:00
2024-08-15 15:30:09 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-20 23:22:26 +02:00
2023-11-22 15:42:25 +00:00
2024-05-14 16:37:11 +02:00
2024-08-12 19:19:28 +02:00
2024-07-01 16:45:17 +02:00