Reported by Bruce Korb in:
http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
* lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
+2015-02-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ crypto/gc: fix a -Wswitch warning
+ Reported by Bruce Korb in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
+ * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
+
2015-02-03 Pádraig Brady <P@draigBrady.com>
gnulib-tool: fix handling of patch(1) diagnostics
_gc_hash_ctx *ctx;
Gc_rc rc = GC_OK;
+ if (mode != 0)
+ return GC_INVALID_HASH;
+
ctx = calloc (sizeof (*ctx), 1);
if (!ctx)
return GC_MALLOC_ERROR;
break;
}
- switch (mode)
- {
- case 0:
- break;
-
- default:
- rc = GC_INVALID_HASH;
- break;
- }
-
if (rc == GC_OK)
*outhandle = ctx;
else