Fix deprecated gcov symbol issue caused by gcc version upgrade 74/318274/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.233406 accepted/tizen/unified/20241007.161022 accepted/tizen/unified/toolchain/20241022.122333 accepted/tizen/unified/toolchain/20241022.122821 accepted/tizen/unified/x/20241007.103738 accepted/tizen/unified/x/asan/20241013.235648 tizen_9.0_m2_release
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 26 Sep 2024 07:31:33 +0000 (16:31 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 26 Sep 2024 07:31:33 +0000 (16:31 +0900)
[Version] 0.14.5
[Issue Type] Toolchain

Change-Id: Ie9db9a1a182974807db19143406fb0ea7fc41262

common/mm_sound_utils.c
packaging/libmm-sound.spec

index 1f6d29d0f6305d54ecbb6be78508581aa878f3af..fc82a8b646be80682378e09f2c6ec1f18ec53ef9 100644 (file)
@@ -64,6 +64,12 @@ bool mm_sound_util_is_process_alive(pid_t pid)
 #ifdef USE_GCOV
 #include <gcov.h>
 
+#if (defined(__GNUC__) \
+       && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \
+       || (defined(__clang__) && (__clang_major__ >= 12))
+       #define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0)
+#endif
+
 EXPORT_API
 void mm_sound_gcov_set_prefix(void)
 {
@@ -75,4 +81,4 @@ void mm_sound_gcov_flush(void)
 {
        __gcov_flush();
 }
-#endif /* USE_GCOV */
\ No newline at end of file
+#endif /* USE_GCOV */
index a265a8efc2b0e8dcb326a86c9c090b8b8f8d7c8b..a2b44bc146b2294c72744f39e9dd174dc386e889 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and focus server binary
-Version:    0.14.4
+Version:    0.14.5
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0