From bd89957287441872706432d1e283091b4e5cdbc8 Mon Sep 17 00:00:00 2001 From: bustico Date: Thu, 20 Jun 2013 08:38:59 +0000 Subject: fix compilation warning --- tools/ivytestready.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tools/ivytestready.c') diff --git a/tools/ivytestready.c b/tools/ivytestready.c index 4f839ef..35e0eae 100755 --- a/tools/ivytestready.c +++ b/tools/ivytestready.c @@ -85,6 +85,10 @@ void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyB } } + + + + int main(int argc, char *argv[]) { @@ -98,8 +102,17 @@ int main(int argc, char *argv[]) } IvyInit (me, ready_message, NULL,NULL,NULL,NULL); - IvySetBindCallback( binCB, 0 ), + IvySetBindCallback( binCB, 0 ); + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-security" +#endif IvyBindMsg (Ready, NULL, ready_bind); +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + IvyBindMsg (Question, NULL, "^are you there %s",me); IvyBindMsg (Reply, NULL, "^(yes i am %s)",other); -- cgit v1.1