Fix macro definition interfering with -Wmisleading-indentation #241

Merged
ariadne merged 2 commits from dcbaker/pkgconf:submit/misleading-indentation into master 2022-08-04 04:33:11 +00:00
2 changed files with 3 additions and 2 deletions

View File

@ -298,11 +298,11 @@ PKGCONF_API bool pkgconf_default_error_handler(const char *msg, const pkgconf_cl
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
#define PKGCONF_TRACE(client, ...) do { \
pkgconf_trace(client, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__); \
} while (0);
} while (0)
#else
#define PKGCONF_TRACE(client, ...) do { \
pkgconf_trace(client, __FILE__, __LINE__, __func__, __VA_ARGS__); \
} while (0);
} while (0)
#endif
#else
#define PKGCONF_TRACE(client, ...)

View File

@ -12,6 +12,7 @@ add_project_arguments(
'-D_DEFAULT_SOURCE',
cc.get_supported_arguments(
'-Wimplicit-function-declaration',
'-Wmisleading-indentation',
),
language : 'c',
)