From: Paul Reimer Date: Mon, 14 May 2018 17:17:04 +0000 (-0700) Subject: Add declarations of private cxx_guard functions (__cxa_guard_*) in cxx component... X-Git-Tag: v3.1-beta1~54^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5ac96f49a7fc917d36409396e4d5ed1440bd58f;p=esp-idf Add declarations of private cxx_guard functions (__cxa_guard_*) in cxx component to fix C++ -Wmissing-declarations warning Merges https://github.com/espressif/esp-idf/pull/1956 --- diff --git a/components/cxx/cxx_guards.cpp b/components/cxx/cxx_guards.cpp index 288ff3ea03..48819a7ab5 100644 --- a/components/cxx/cxx_guards.cpp +++ b/components/cxx/cxx_guards.cpp @@ -33,6 +33,10 @@ static size_t s_static_init_waiting_count = 0; //!< number of tasks static size_t s_static_init_max_waiting_count = 0; //!< maximum ever value of the above; can be inspected using GDB for debugging purposes #endif +extern "C" int __cxa_guard_acquire(__guard* pg); +extern "C" void __cxa_guard_release(__guard* pg); +extern "C" void __cxa_guard_abort(__guard* pg); +extern "C" void __cxa_guard_dummy(); /** * Layout of the guard object (defined by the ABI).