diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-16 12:13:31 -0600 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-17 11:44:46 -0600 |
commit | c921feb829e79a33938300350e61e3c3fb217968 (patch) | |
tree | b2054ac86a99fc4a52ded75826aad86e2561781b /librabbitmq/amqp_api.c | |
parent | 162fc19f4d896c3db862f1da303823dcbe9780ec (diff) | |
download | rabbitmq-c-c921feb829e79a33938300350e61e3c3fb217968.tar.gz |
Set default visibility to hidden & enable a couple more warnings
Enable the following GCC options:
1. -Wstrict-prototypes
2. -Wcast-align
3. -fno-common
4. -fvisibility=hidden
This commit also includes some general cleanup of header files (mostly
for readability).
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'librabbitmq/amqp_api.c')
-rw-r--r-- | librabbitmq/amqp_api.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/librabbitmq/amqp_api.c b/librabbitmq/amqp_api.c index b4effec..f011354 100644 --- a/librabbitmq/amqp_api.c +++ b/librabbitmq/amqp_api.c @@ -34,17 +34,13 @@ #include "config.h" #endif -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <stdint.h> -#include <stdarg.h> - -#include "amqp.h" -#include "amqp_framing.h" #include "amqp_private.h" - #include <assert.h> +#include <stdarg.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> static const char *client_error_strings[ERROR_MAX] = { "could not allocate memory", /* ERROR_NO_MEMORY */ |