shithub: dumb

Download patch

ref: 8748867cfed4e259d0faff3dbdef109b3d3fe432
parent: d6dd2ace1ceecb606beaae3dbbeffa5fc9a09854
author: Christopher Snowhill <kode54@gmail.com>
date: Fri Sep 29 13:36:34 EDT 2017

Amend static assert structure so variable name does not match the structure name, which conflicts with some compilers in C++ mode.

--- a/include/dumb.h
+++ b/include/dumb.h
@@ -121,7 +121,7 @@
 _Static_assert(sizeof(dumb_off_t) >= 8, "fuse: off_t must be 64bit");
 #else
 struct dumb_off_t_needs_to_be_at_least_8_bytes {
-    unsigned int dumb_off_t_needs_to_be_at_least_8_bytes
+    unsigned int dumb_off_t_needs_to_be_at_least_8_bytes_
         : ((sizeof(dumb_off_t) >= 8) ? 1 : -42);
 };
 #endif