summaryrefslogtreecommitdiffstats
path: root/logwrapper/logwrap.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-30 09:04:25 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-02 14:15:59 -0700
commit5254c4a448c88bb0056eafe41cef03026a1ebb19 (patch)
treeef877aafb66c10fc288d0ad6d8b27eddb9387af1 /logwrapper/logwrap.c
parent1e10b661cc5cc58e76540e271e463e94f53c0db8 (diff)
downloadcore-5254c4a448c88bb0056eafe41cef03026a1ebb19.tar.gz
core-5254c4a448c88bb0056eafe41cef03026a1ebb19.tar.bz2
core-5254c4a448c88bb0056eafe41cef03026a1ebb19.zip
logwrapper: turn on -Werror
- Deal with some -Wunused / -Wunused-variable issues Change-Id: I27a99ffb962289ebbf04b40870b9404842030d2f
Diffstat (limited to 'logwrapper/logwrap.c')
-rw-r--r--logwrapper/logwrap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/logwrapper/logwrap.c b/logwrapper/logwrap.c
index 4ca1db4c8..d47c9b515 100644
--- a/logwrapper/logwrap.c
+++ b/logwrapper/logwrap.c
@@ -104,8 +104,6 @@ static void add_line_to_abbr_buf(struct abbr_buf *a_buf, char *linebuf, int line
static int add_line_to_linear_buf(struct beginning_buf *b_buf,
char *line, ssize_t line_len)
{
- size_t new_len;
- char *new_buf;
int full = 0;
if ((line_len + b_buf->used_len) > b_buf->buf_size) {
@@ -124,7 +122,6 @@ static void add_line_to_circular_buf(struct ending_buf *e_buf,
{
ssize_t free_len;
ssize_t needed_space;
- char *new_buf;
int cnt;
if (e_buf->buf == NULL) {
@@ -192,7 +189,6 @@ static void print_buf_lines(struct log_info *log_info, char *buf, int buf_size)
{
char *line_start;
char c;
- int line_len;
int i;
line_start = buf;