1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib
Martin Schwenke 538748132f Fix -Wunused-but-set-variable compiler warnings in tevent_signal.c
The results of some read(2) and write(2) calls are assigned into a
variable that is never used.  Presumably this used to avoid compiler
warnings or similar.

However, from (approximately) GCC 4.6 this produces some warnings:

  [ 609/3910] Compiling lib/tevent/tevent_signal.c
  ../lib/tevent/tevent_signal.c: In function ‘tevent_common_signal_handler’:
  ../lib/tevent/tevent_signal.c:85:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  ../lib/tevent/tevent_signal.c: In function ‘signal_pipe_handler’:
  ../lib/tevent/tevent_signal.c:183:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]

The simplest thing to do is remove the variables and cast the function
return to void.  There is already a comment above each call.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-10 10:28:44 +01:00
..
addns addns: Remove unused empty header file 2011-09-25 09:15:09 +02:00
async_req build: avoid util.h as a public header name due to conflict with MacOS 2011-09-23 09:24:03 +02:00
ccan ccan: configure check for HAVE_BUILTIN_CHOOSE_EXPR 2011-09-14 07:05:13 +09:30
compression lib/compression: add shared wscript_build. 2011-02-08 14:05:36 +01:00
crypto build: avoid util.h as a public header name due to conflict with MacOS 2011-09-23 09:24:03 +02:00
dnspython dnspython: Update to latest upstream snapshot. 2011-08-27 17:40:39 +02:00
iniparser s4 nss_switch: fix build problem on computer without the iniparser 2010-07-17 20:10:11 +04:00
iniparser_build
ldb pyldb: fixed ldb API test 2011-11-10 14:24:21 +11:00
ldb-samba ldb-samba: Added handler to decode dnsProperty attribute 2011-10-20 05:53:05 +02:00
nss_wrapper Clean up some const and other compiler warnings. 2011-05-05 00:59:40 +02:00
param param: Remove duplicate initialization of 'share backend' parameter 2011-11-08 02:58:06 +01:00
popt s4: Remove the old perl/m4/make/mk-based build system. 2010-10-31 02:01:44 +00:00
replace replace: Add don't include unistd.h directly and add uid_wrapper. 2011-10-27 13:32:02 +02:00
smbconf libsmbconf: Define a doxygen group for libsmbconf. 2011-05-10 19:13:26 +02:00
socket Fix const warnings. 2011-10-14 13:48:53 -07:00
socket_wrapper socket_wrapper: correctly handle dup()/dup2() ref counting 2011-09-29 13:13:56 +02:00
subunit Update to newer version of subunit. 2011-10-13 20:37:18 +02:00
talloc talloc: fix a comment typo 2011-10-26 02:44:02 +02:00
tdb wafsamba: Only install .pc files if libraries are public. 2011-08-21 03:22:05 +02:00
tdb2 tdb2: don't be fascist when TDB_VERSION1 is specified. 2011-11-02 08:38:38 +01:00
tdb_compat tdb_compat: add "TDB_COMPAT_USE_TDB2" environment variable 2011-09-21 12:58:59 +09:30
tdr Fix convert_string() to take a *converted_size arg. and return a bool. 2011-03-30 23:59:37 +02:00
testtools testtools: Import new upstream snapshot. 2011-10-03 13:54:06 +02:00
tevent Fix -Wunused-but-set-variable compiler warnings in tevent_signal.c 2011-11-10 10:28:44 +01:00
torture torture: add torture_assert_guid_equal() macro. 2011-11-03 18:35:09 +01:00
tsocket tsocket: make use of tevent_queue_add_optimize_empty() to optimize for the empty queue case 2011-08-10 08:04:15 +02:00
uid_wrapper Include uid_wrapper correctly. 2011-10-27 13:32:02 +02:00
util util/time: Make some functions explicitly public. 2011-11-03 17:22:40 +01:00
zlib build: a more robust zlib test 2011-09-09 15:24:05 +10:00
README
update-external.sh subunit: Import new upstream snapshot (adds subunit_progress()) 2010-09-30 09:29:42 +02:00
wscript_build build: provide tevent-util as a public library 2011-08-08 13:34:06 +02:00

compression - Various compression algorithms (MSZIP, lzxpress)
dnspython - Python module for working with DNS.
nss_wrapper - Wrapper for the user and group NSS API allowing the use 
              of other data sources.
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected 
                 over Unix domain sockets.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library