facebookarchive / libphenom

An eventing framework for building high performance and high scalability systems in C.
http://facebook.github.io/libphenom
Apache License 2.0
1.66k stars 362 forks source link

Static assert fix #80

Closed tyrellj closed 8 years ago

tyrellj commented 8 years ago

Latest-ish clang on MacOS detects the static assert struct as an unused type which causes a warning that results in a build failure. I tested that the assertions will still fail with the type marked unused, just to be sure. It should probably be using the c11/_Static_assert(), but I'm not familiar enough with autotools to resolve that at the moment.

I also fixed a warning in tests/buf.c.

wez commented 8 years ago

Pushed as d187b1163ee9ed05f632dff014e6aff014055963 and 6c14c49bd5e864285cb496c6e0c207d9ca6599cc Thanks!