From 89a50fe1ebfa09f6a5e82566e27f80708a50db4d Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Tue, 8 Dec 2015 11:39:29 -0800 Subject: [PATCH] constexpr constructor for atfork_list_t Bug: http://b/26026986 Change-Id: Iad95383a23f81eea776bebce641c555d26547b77 --- libc/bionic/pthread_atfork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/bionic/pthread_atfork.cpp b/libc/bionic/pthread_atfork.cpp index 093ffd240..2200a6c36 100644 --- a/libc/bionic/pthread_atfork.cpp +++ b/libc/bionic/pthread_atfork.cpp @@ -45,7 +45,7 @@ struct atfork_t { class atfork_list_t { public: - atfork_list_t() : first_(nullptr), last_(nullptr) {} + constexpr atfork_list_t() : first_(nullptr), last_(nullptr) {} template void walk_forward(F f) {