25 May
2016
25 May
'16
14:32
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... 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@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org