History

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

Christopher Snowhill committed 9 years ago

Commit 87488671 parent d6dd2ac1 file · +1 −1Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/dumb.h+1−1
@@ -121,7 +121,7 @@ typedef long long dumb_off_t; · 120 unmodified lines
121_Static_assert(sizeof(dumb_off_t) >= 8, "fuse: off_t must be 64bit");121_Static_assert(sizeof(dumb_off_t) >= 8, "fuse: off_t must be 64bit");
122#else122#else
123struct dumb_off_t_needs_to_be_at_least_8_bytes {123struct dumb_off_t_needs_to_be_at_least_8_bytes {
124 unsigned int dumb_off_t_needs_to_be_at_least_8_bytes124 unsigned int dumb_off_t_needs_to_be_at_least_8_bytes_
125 : ((sizeof(dumb_off_t) >= 8) ? 1 : -42);125 : ((sizeof(dumb_off_t) >= 8) ? 1 : -42);
126};126};
127#endif127#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t