summaryrefslogtreecommitdiffstats
path: root/tools/line_endings
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-20 11:28:46 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-27 14:43:17 -0700
commit62f253dc80631defc1397d67394f17c873ba7011 (patch)
tree8d63c6d31c9f7816fd33d18b03a0ff0f08ed7654 /tools/line_endings
parentcf652ac25b9eddc7f00668f110a07b509e60dd50 (diff)
downloadandroid_development-62f253dc80631defc1397d67394f17c873ba7011.tar.gz
android_development-62f253dc80631defc1397d67394f17c873ba7011.tar.bz2
android_development-62f253dc80631defc1397d67394f17c873ba7011.zip
Use -Werror in development
* Fix/suppress existing warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Iacc9052f81e6fe7e8a10b00a6fcea912a7d636d3
Diffstat (limited to 'tools/line_endings')
-rw-r--r--tools/line_endings/line_endings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/line_endings/line_endings.c b/tools/line_endings/line_endings.c
index 97e1a2913..5d3f8d263 100644
--- a/tools/line_endings/line_endings.c
+++ b/tools/line_endings/line_endings.c
@@ -88,7 +88,7 @@ main(int argc, char** argv)
len -= amt2;
}
- ftruncate(fd, 0);
+ (void)ftruncate(fd, 0);
lseek(fd, 0, SEEK_SET);
while (root) {
ssize_t amt2 = strlen(root->buf);