]> git.sur5r.net Git - i3/i3/commit
Add a safe wrapper for write and fix some warnings 1575/head
authorhwangcc <hwangcc@csie.nctu.edu.tw>
Tue, 24 Mar 2015 12:57:06 +0000 (20:57 +0800)
committerhwangcc <hwangcc@csie.nctu.edu.tw>
Sun, 29 Mar 2015 02:22:34 +0000 (10:22 +0800)
commit42515308e72e4ea6f6b49508c1ba286263dded64
tree0d45efcea26bd355a3cd808462850723bd99a193
parent822cd3bf1b95a61667bfa186ff2093ecd317a3a6
Add a safe wrapper for write and fix some warnings

1. Add a function writeall and make swrite wrap that function. Use either writeall or swrite, depending on whether we want to exit on errors or not.
2. Fix warnings when compiling with a higher optimisation level.
(CFLAGS ?= -pipe -O3 -march=native -mtune=native -freorder-blocks-and-partition)

Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
12 files changed:
i3-dump-log/main.c
i3-nagbar/main.c
i3bar/src/child.c
i3bar/src/ipc.c
include/libi3.h
libi3/ipc_send_message.c
libi3/safewrappers.c
src/click.c
src/config_parser.c
src/load_layout.c
src/sighandler.c
src/util.c