diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
| commit | 0f03cc378e6ce48f17a20e409f93bfc11345a6ed (patch) | |
| tree | f4768c6fe96e1ac2a9c5833dee897924300d4a45 /src/common.h | |
| parent | Add blind-tempral-mean (diff) | |
| download | blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.gz blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.bz2 blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.xz | |
Fix errors and warnings and make the code cleaner
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/common.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..3a746f8 --- /dev/null +++ b/src/common.h @@ -0,0 +1,37 @@ +/* See LICENSE file for copyright and license details. */ +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wdisabled-macro-expansion" +# pragma clang diagnostic ignored "-Wcomma" +# pragma clang diagnostic ignored "-Wcast-align" +# pragma clang diagnostic ignored "-Wassign-enum" +# pragma clang diagnostic ignored "-Wfloat-equal" +# pragma clang diagnostic ignored "-Wformat-nonliteral" +# pragma clang diagnostic ignored "-Wcovered-switch-default" +#elif defined(__GNUC__) +# pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + +#include "stream.h" +#include "util.h" +#include "video-math.h" + +#include <arpa/inet.h> +#if defined(HAVE_EPOLL) +# include <sys/epoll.h> +#endif +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/wait.h> +#include <alloca.h> +#include <ctype.h> +#include <errno.h> +#include <fcntl.h> +#include <inttypes.h> +#include <limits.h> +#include <signal.h> +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> +#include <unistd.h> |
