diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-31 11:16:26 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-31 11:19:24 +0300 |
commit | 424abcd21daf7000fa826a03de6188ea608a50ec (patch) | |
tree | b290e8f29f227fcef0259d14a6306979dd2f2f3e /src/examples | |
parent | e7f77103503632ddd6ee6e87021de83271e9ebbf (diff) | |
download | libmicrohttpd-424abcd21daf7000fa826a03de6188ea608a50ec.tar.gz libmicrohttpd-424abcd21daf7000fa826a03de6188ea608a50ec.zip |
Additional compiler warnings fixes.
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/demo.c | 1 | ||||
-rw-r--r-- | src/examples/demo_https.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c index 0b177357..6c9ad049 100644 --- a/src/examples/demo.c +++ b/src/examples/demo.c | |||
@@ -832,6 +832,7 @@ generate_page (void *cls, | |||
832 | static void | 832 | static void |
833 | catcher (int sig) | 833 | catcher (int sig) |
834 | { | 834 | { |
835 | (void)sig; /* Unused. Silent compiler warning. */ | ||
835 | /* do nothing */ | 836 | /* do nothing */ |
836 | } | 837 | } |
837 | 838 | ||
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c index 85c369b6..806464a2 100644 --- a/src/examples/demo_https.c +++ b/src/examples/demo_https.c | |||
@@ -831,6 +831,7 @@ generate_page (void *cls, | |||
831 | static void | 831 | static void |
832 | catcher (int sig) | 832 | catcher (int sig) |
833 | { | 833 | { |
834 | (void)sig; /* Unused. Silent compiler warning. */ | ||
834 | /* do nothing */ | 835 | /* do nothing */ |
835 | } | 836 | } |
836 | 837 | ||
@@ -839,7 +840,7 @@ catcher (int sig) | |||
839 | * setup handlers to ignore SIGPIPE. | 840 | * setup handlers to ignore SIGPIPE. |
840 | */ | 841 | */ |
841 | static void | 842 | static void |
842 | ignore_sigpipe () | 843 | ignore_sigpipe (void) |
843 | { | 844 | { |
844 | struct sigaction oldsig; | 845 | struct sigaction oldsig; |
845 | struct sigaction sig; | 846 | struct sigaction sig; |