From e9efd05fe4e57602e21f3b3969641524129bb0cb Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 7 Jan 2021 21:29:08 +0000 Subject: [PATCH] Fix -Wnewline-eof Technically, C requires that all source files end with a newline. In practice, most compilers will accept source files without a newline, but it does trigger the -Wnewline-eof warning. Change-Id: I64a92b82f4d5724cd8b45821cfd59eb3de39514b --- libc/bionic/bionic_appcompat.cpp | 2 +- libc/bionic/bionic_appcompat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/bionic/bionic_appcompat.cpp b/libc/bionic/bionic_appcompat.cpp index 5b31c299d..dcca0dad5 100644 --- a/libc/bionic/bionic_appcompat.cpp +++ b/libc/bionic/bionic_appcompat.cpp @@ -88,4 +88,4 @@ int get_package_name(char* buffer, const int bufferlen) { close(file); return 0; -} \ No newline at end of file +} diff --git a/libc/bionic/bionic_appcompat.h b/libc/bionic/bionic_appcompat.h index 1976e0b70..fd3703588 100644 --- a/libc/bionic/bionic_appcompat.h +++ b/libc/bionic/bionic_appcompat.h @@ -41,4 +41,4 @@ static inline const char* const soft_mac_getlink_allowlist[] = { int get_package_name(char* buffer, const int bufferlen); bool should_apply_soft_mac_bind_restrictions(); -bool should_apply_soft_mac_getlink_restrictions(); \ No newline at end of file +bool should_apply_soft_mac_getlink_restrictions();