From edad1e1558bf5a561ffb33c5bf5ca0553711e1ee Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Wed, 18 Sep 2013 23:37:00 +0200 Subject: [PATCH] Fix mismatch between declaration and forward declaration KernelArgumentBlock is defined as a class in KernelArgumentBlock.h, but forward declarations refer to it as a struct. While this is essentially the same, the mismatch causes a compiler warning in clang (and may cause warnings in future versions of gcc) in code that is supposed to be compiled with -Werror. Change-Id: I4ba49d364c44d0a42c276aff3a8098300dbdcdf0 Signed-off-by: Bernhard Rosenkraenzer --- libc/bionic/libc_init_common.h | 2 +- libc/private/bionic_tls.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/bionic/libc_init_common.h b/libc/bionic/libc_init_common.h index 14105f87b..59dc7dff8 100644 --- a/libc/bionic/libc_init_common.h +++ b/libc/bionic/libc_init_common.h @@ -49,7 +49,7 @@ void __libc_fini(void* finit_array); __END_DECLS #if defined(__cplusplus) -struct KernelArgumentBlock; +class KernelArgumentBlock; void __LIBC_HIDDEN__ __libc_init_common(KernelArgumentBlock& args); #endif diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h index d15b1ca06..9ea36474e 100644 --- a/libc/private/bionic_tls.h +++ b/libc/private/bionic_tls.h @@ -113,7 +113,7 @@ extern int __set_tls(void* ptr); __END_DECLS #if defined(__cplusplus) -struct KernelArgumentBlock; +class KernelArgumentBlock; extern __LIBC_HIDDEN__ void __libc_init_tls(KernelArgumentBlock& args); #endif