Module: check_mk
Branch: master
Commit: 8b58f4b8249aa17c8896c367861b35f0654937fa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b58f4b8249aa1…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 24 14:33:10 2015 +0100
Compile with -O3. Warning police.
---
agents/Makefile | 4 ++--
agents/waitmax.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/agents/Makefile b/agents/Makefile
index f8096e7..6dc685d 100644
--- a/agents/Makefile
+++ b/agents/Makefile
@@ -40,8 +40,8 @@ usage:
waitmax: waitmax.c
@if type diet >/dev/null ; then \
- echo "Compiling with diet (please ignore diet-warnings)..." ; \
- diet gcc -s -o waitmax waitmax.c ; \
+ echo "Compiling with diet..." ; \
+ diet gcc -s -Wall -Wextra -O3 -o waitmax waitmax.c ; \
else \
echo "WARNING: your binary is not portable. Please compile " ; \
echo "with dietlibc on 32-Bit to get portable statically " ; \
diff --git a/agents/waitmax.c b/agents/waitmax.c
index 3dab79d..fa5abd0 100644
--- a/agents/waitmax.c
+++ b/agents/waitmax.c
@@ -219,4 +219,5 @@ int main(int argc, char **argv)
if (WIFEXITED(status)) return WEXITSTATUS(status);
if (WIFSIGNALED(status)) return g_timeout ? 255 : 128 + WTERMSIG(status);
exit_with("Program did neither exit nor was signalled.", 0, 254);
+ return 0; /* Make GCC happy. */
}