Fix macro definition interfering with -Wmisleading-indentation #241
|
@ -298,11 +298,11 @@ PKGCONF_API bool pkgconf_default_error_handler(const char *msg, const pkgconf_cl
|
||||||
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
|
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
|
||||||
#define PKGCONF_TRACE(client, ...) do { \
|
#define PKGCONF_TRACE(client, ...) do { \
|
||||||
pkgconf_trace(client, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__); \
|
pkgconf_trace(client, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__); \
|
||||||
} while (0);
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define PKGCONF_TRACE(client, ...) do { \
|
#define PKGCONF_TRACE(client, ...) do { \
|
||||||
pkgconf_trace(client, __FILE__, __LINE__, __func__, __VA_ARGS__); \
|
pkgconf_trace(client, __FILE__, __LINE__, __func__, __VA_ARGS__); \
|
||||||
} while (0);
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define PKGCONF_TRACE(client, ...)
|
#define PKGCONF_TRACE(client, ...)
|
||||||
|
|
|
@ -12,6 +12,7 @@ add_project_arguments(
|
||||||
'-D_DEFAULT_SOURCE',
|
'-D_DEFAULT_SOURCE',
|
||||||
cc.get_supported_arguments(
|
cc.get_supported_arguments(
|
||||||
'-Wimplicit-function-declaration',
|
'-Wimplicit-function-declaration',
|
||||||
|
'-Wmisleading-indentation',
|
||||||
),
|
),
|
||||||
language : 'c',
|
language : 'c',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue