commit 094af8720cae202f76f8b1c46d47a40361a7ad8b Author: Oswald Buddenhagen <o...@users.sf.net> Date: Sat Oct 7 14:30:31 2017 +0200
limit -Wmaybe-uninitialized suppression to gcc >= 4.3 apple gcc 4.2 complains about the use of the pragma inside a function. clang also complains, but because the pragma is entirely unknown to it. as neither compiler emits the bogus warning in the first place, there is no point in suppressing it anyway. src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 9576b65..3b624bd 100644 --- a/src/util.c +++ b/src/util.c @@ -519,13 +519,13 @@ map_name( const char *arg, char **result, int reserve, const char *in, const cha for (ll = 0; ll < inl; ll++) if (arg[i + ll] != in[ll]) goto rnexti; -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__clang__) # pragma GCC diagnostic push /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42145 */ # pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif memcpy( p, out, outl ); -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__clang__) # pragma GCC diagnostic pop #endif p += outl; ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel