isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 743968737c5e296fb5c7d0d2dc1de091cc84c0d7
parent ef0e7fdd3e921d612220a830436bb9862bca61ac
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 11 Dec 2016 12:09:36 +0100

silence bogus [-Wmaybe-uninitialized] with -O0/-O1/-Os

Diffstat:
Msrc/util.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/util.c b/src/util.c @@ -522,7 +522,15 @@ 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__ +# 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__ +# pragma GCC diagnostic pop +#endif p += outl; i += inl; continue;