mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
build: delete/replace 3 more clang warning pragmas
- tool_msgs: delete redundant `-Wformat-nonliteral` suppression pragma. - whitespace formatting in `mprintf.h`, lib518, lib537. - lib518: fix wrong variable in `sizeof()`. - lib518: bump variables to `rlim_t`. Follow-up toe2b394106d#1469 - lib518: sync error message with lib537 Follow-up to365322b8bc- lib518, lib537: replace `-Wformat-nonliteral` suppression pragmas by reworking test code. Follow-up to5b286c2508#12812 Follow-up toaee4ebe591#12803 Follow-up to0923012758#12540 Follow-up to3829759bd0#12489 Reviewed-by: Daniel Stenberg Closes #12814
This commit is contained in:
parent
0f4c19b66a
commit
cb343182b7
4 changed files with 85 additions and 133 deletions
|
|
@ -46,13 +46,15 @@ extern "C" {
|
|||
#define CURL_TEMP_PRINTF(fmt, arg)
|
||||
#endif
|
||||
|
||||
CURL_EXTERN int curl_mprintf(const char *format, ...) CURL_TEMP_PRINTF(1, 2);
|
||||
CURL_EXTERN int curl_mprintf(const char *format, ...)
|
||||
CURL_TEMP_PRINTF(1, 2);
|
||||
CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...)
|
||||
CURL_TEMP_PRINTF(2, 3);
|
||||
CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...)
|
||||
CURL_TEMP_PRINTF(2, 3);
|
||||
CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
|
||||
const char *format, ...) CURL_TEMP_PRINTF(3, 4);
|
||||
const char *format, ...)
|
||||
CURL_TEMP_PRINTF(3, 4);
|
||||
CURL_EXTERN int curl_mvprintf(const char *format, va_list args)
|
||||
CURL_TEMP_PRINTF(1, 0);
|
||||
CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue