Mailinglist Archive: opensuse-factory (498 mails)

< Previous Next >
Re: [opensuse-factory] GCC 6 as default compiler - your help is needed
Is the GCC 6 option -Werror=misleading-indentation really helpful?

I saw this patch for Mozilla NSS:
https://build.opensuse.org/package/view_file/mozilla:Factory/mozilla-nss/nss_gcc6_change.patch?rev=211

The patch is long, but mostly changes indentation to make GCC 6 with
-Werror=misleading-indentation happy.

One example:
--- nss.orig/lib/dbm/src/hash.c
+++ nss/lib/dbm/src/hash.c
@@ -154,7 +154,7 @@ __hash_open(const char *file, int flags,
return NULL;
}
hashp->fp = NO_FILE;
- if(file)
+ if (file)
hashp->filename = strdup(file);

/*

Greetings,
Björn


--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >