diff options
author | Andrew Cady <d@jerkface.net> | 2015-12-17 21:56:11 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2015-12-17 21:56:11 -0500 |
commit | d95617e806181713546d4d6d3864e9a01004fc86 (patch) | |
tree | 1c801ff7d1ab17de5259ace19f41db6b3963121b /alsa_shut_up.c | |
parent | 8bfbb21ec9651333e103477eacc119052dca5b78 (diff) |
Fix cabal builds
NB. Cabal has sanity-destroying (undocumented?) restriction: cannot have
a .c source with the same basename as a .hs source.
TODO: make cabal output a syntax error (instead of an inscrutable linker
error!) when the user attempts this. Or, at least, file a bug report.
Diffstat (limited to 'alsa_shut_up.c')
-rw-r--r-- | alsa_shut_up.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alsa_shut_up.c b/alsa_shut_up.c new file mode 100644 index 0000000..1d38891 --- /dev/null +++ b/alsa_shut_up.c | |||
@@ -0,0 +1,5 @@ | |||
1 | #include <stdarg.h> | ||
2 | #include <alsa/error.h> | ||
3 | |||
4 | void sufferInSilence(const char *file, int line, const char *function, int err, const char *fmt,...) { return; } | ||
5 | int alsaShutUp() { return snd_lib_error_set_handler(sufferInSilence); } | ||