Added -pedantic, fixed warning.

This commit is contained in:
Michael Jumper 2011-03-24 23:11:46 -07:00
parent 1e33435c22
commit bb994d5c90
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -Werror -Wall -Iinclude
AM_CFLAGS = -Werror -Wall -pedantic -Iinclude
libguacincdir = $(includedir)/guacamole
libguacinc_HEADERS = include/client.h include/guacio.h include/protocol.h include/log.h

View File

@ -175,12 +175,14 @@ int guac_send_args(GUACIO* io, const char** args) {
for (i=0; args[i] != NULL; i++) {
char* escaped;
if (i > 0) {
if (guac_write_string(io, ","))
return -1;
}
char* escaped = guac_escape_string(args[i]);
escaped = guac_escape_string(args[i]);
if (guac_write_string(io, escaped)) {
free(escaped);
return -1;