[tracker-miners: 1/2] libtracker-extract: drop G_GNUC_CONST for module manager init




commit a7b11c3ffd38de52075fb387e271f63e5d5d153e
Author: Daniel Kolesa <daniel octaforge org>
Date:   Tue Jan 18 03:06:36 2022 +0100

    libtracker-extract: drop G_GNUC_CONST for module manager init
    
    This function in fact has side effects (it initializes the
    'initialized' variable) so this annotation is incorrect and in
    fact results in miscompilation under Clang, resulting in the
    module init function never being called, and segfaulting.

 src/libtracker-extract/tracker-module-manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.h b/src/libtracker-extract/tracker-module-manager.h
index 0139c11b5..d82cd6820 100644
--- a/src/libtracker-extract/tracker-module-manager.h
+++ b/src/libtracker-extract/tracker-module-manager.h
@@ -40,7 +40,7 @@ typedef void     (* TrackerExtractShutdownFunc) (void);
 typedef gboolean (* TrackerExtractMetadataFunc) (TrackerExtractInfo  *info,
                                                  GError             **error);
 
-gboolean  tracker_extract_module_manager_init                (void) G_GNUC_CONST;
+gboolean  tracker_extract_module_manager_init                (void);
 
 GStrv tracker_extract_module_manager_get_all_rdf_types (void);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]