{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1741816793,"commit_time":1741862213,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"44d4957a6f293ee711e11cf57d07f3fb47e60f2a","message":"memdebug.h: avoid `-Wredundant-decls` with an extra guard\n\nAdd an extra guard for the function and variable declarations to avoid\nredundant redeclaration warnings when including this header multiple\ntimes. This can happen in unity builds when including it again after\n`curl_memory.h`.\n\nFixes:\n```\nbld/tests/server/CMakeFiles/servers.dir/Unity/unity_0_c.c\nIn file included from lib/mprintf.c:32,\n                 from bld/tests/server/CMakeFiles/servers.dir/Unity/unity_0_c.c:7:\nlib/memdebug.h:52:14: error: redundant redeclaration of ‘curl_dbg_logfile’ [-Werror=redundant-decls]\n   52 | extern FILE *curl_dbg_logfile;\n      |              ^~~~~~~~~~~~~~~~\nIn file included from tests/server/resolve.c:50,\n                 from bld/tests/server/server_bundle.c:7,\n                 from bld/tests/server/CMakeFiles/servers.dir/Unity/unity_0_c.c:4:\nlib/memdebug.h:52:14: note: previous declaration of ‘curl_dbg_logfile’ with type ‘FILE *’\n   52 | extern FILE *curl_dbg_logfile;\n      |              ^~~~~~~~~~~~~~~~\n[...]\nlib/memdebug.h:110:17: error: redundant redeclaration of ‘curl_dbg_fclose’ [-Werror=redundant-decls]\n  110 | CURL_EXTERN int curl_dbg_fclose(FILE *file, int line, const char *source);\n      |                 ^~~~~~~~~~~~~~~\nlib/memdebug.h:110:17: note: previous declaration of ‘curl_dbg_fclose’ with type ‘int(FILE *, int,  const char *)’\n  110 | CURL_EXTERN int curl_dbg_fclose(FILE *file, int line, const char *source);\n      |                 ^~~~~~~~~~~~~~~\n```\nRef: https://github.com/curl/curl/actions/runs/13822010778/job/38669360980#step:39:55\n\nCherry-picked from #15000\nCloses #16696\n","parents":["77401af4852103b215fe74989e89be61bbf435d2"],"tree_hash":"bc2f8b04408f7365925fc2e2fa04bf14d80fa64a"}