[GNC-dev] Deprecate g_type_class_add_private()

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
Hello,

I just tried to compile gnucash on OpenSuse Tumbleweed and ran into this
error:

[ 20%] Building CXX object
libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
In function ‘void gnc_account_class_init(AccountClass*)’:
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
[-Werror=deprecated-declarations]
      g_type_class_add_private(klass, sizeof(AccountPrivate));
                                                            ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
                  from /usr/include/glib-2.0/glib-object.h:23,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
  void     g_type_class_add_private       (gpointer                    
g_class,
           ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
[-Werror=deprecated-declarations]
      g_type_class_add_private(klass, sizeof(AccountPrivate));
                                                            ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
                  from /usr/include/glib-2.0/glib-object.h:23,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
                  from
/usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
  void     g_type_class_add_private       (gpointer                    
g_class,
           ^~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option
‘-Wno-deprecated-register’ [-Werror]
cc1plus: all warnings being treated as errors
make[2]: ***
[libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:5032:
libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
make: *** [Makefile:163: all] Fehler 2

https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
says that

  Deprecate g_type_class_add_private()

It's been 4 years and 8 development cycles since we introduced
G_ADD_PRIVATE and offset-based private data access. It is now
time to finally deprecate the old mechanism.

Looking through the source I find:

common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
g_type_class_add_private (gpointer g_class,
common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
g_type_class_add_private (gpointer g_class,
Übereinstimmungen in Binärdatei
gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:    
g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
Übereinstimmungen in Binärdatei
gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:    
g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
Übereinstimmungen in Binärdatei
gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:    
g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
Übereinstimmungen in Binärdatei
gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
gnucash/import-export/log-replay/gnc-plugin-log-replay.c:    
g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
Übereinstimmungen in Binärdatei
gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
gnucash/import-export/ofx/gnc-plugin-ofx.c:    
g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
gnucash/gnome-search/search-numeric.c:    
g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
gnucash/gnome-search/gnc-general-search.c:    
g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
gnucash/gnome-search/search-reconciled.c:    
g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
gnucash/gnome-search/search-int64.c:    g_type_class_add_private(klass,
sizeof(GNCSearchInt64Private));
gnucash/gnome-search/search-string.c:    g_type_class_add_private(klass,
sizeof(GNCSearchStringPrivate));
gnucash/gnome-search/search-boolean.c:    
g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
gnucash/gnome-search/search-account.c:    
g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
gnucash/gnome-search/search-core-type.c:    
g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
gnucash/gnome-search/search-date.c:    g_type_class_add_private(klass,
sizeof(GNCSearchDatePrivate));
gnucash/gnome-search/search-double.c:    g_type_class_add_private(klass,
sizeof(GNCSearchDoublePrivate));
Übereinstimmungen in Binärdatei
gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
gnucash/report/stylesheets/gnc-plugin-stylesheets.c:    
g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
Übereinstimmungen in Binärdatei
gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
gnucash/report/report-gnome/gnc-plugin-page-report.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
gnucash/gnome/gnc-plugin-account-tree.c:    
g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
gnucash/gnome/gnc-plugin-register2.c:    g_type_class_add_private(klass,
sizeof(GncPluginRegister2Private));
gnucash/gnome/gnc-plugin-page-budget.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
gnucash/gnome/gnc-plugin-register.c:    g_type_class_add_private(klass,
sizeof(GncPluginRegisterPrivate));
gnucash/gnome/gnc-plugin-page-register.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
sizeof(GNCSearchOwnerPrivate));
gnucash/gnome/gnc-plugin-business.c:    g_type_class_add_private(klass,
sizeof(GncPluginBusinessPrivate));
gnucash/gnome/gnc-plugin-page-register2.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageRegister2Private));
gnucash/gnome/gnc-plugin-page-sx-list.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
gnucash/gnome/gnc-plugin-page-invoice.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
sizeof(GncBudgetViewPrivate));
gnucash/gnome/gnc-plugin-page-owner-tree.c:    
g_type_class_add_private(klass, sizeof(GncPluginPageOwnerTreePrivate));
gnucash/gnome/gnc-plugin-page-account-tree.c:    
g_type_class_add_private(klass,
sizeof(GncPluginPageAccountTreePrivate));
gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
sizeof(GncPluginBudgetPrivate));
gnucash/gnome/gnc-plugin-basic-commands.c:    
g_type_class_add_private(klass, sizeof(GncPluginBasicCommandsPrivate));
gnucash/gnome-utils/gnc-tree-view-owner.c:    
g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
sizeof(GNCSearchParamPrivate));
gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
sizeof(GNCSearchParamSimplePrivate));
gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
sizeof(GNCSearchParamCompoundPrivate));
gnucash/gnome-utils/gnc-tree-model-selection.c:    
g_type_class_add_private(klass, sizeof(GncTreeModelSelectionPrivate));
gnucash/gnome-utils/gnc-tree-model-owner.c:    
g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
sizeof(GncPluginPrivate));
gnucash/gnome-utils/gnc-tree-view-price.c:    
g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
Übereinstimmungen in Binärdatei
gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
gnucash/gnome-utils/gnc-tree-model-account.c:    
g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
gnucash/gnome-utils/gnc-tree-model-commodity.c:    
g_type_class_add_private(klass, sizeof(GncTreeModelCommodityPrivate));
gnucash/gnome-utils/gnc-tree-view-split-reg.c:    
g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
gnucash/gnome-utils/gnc-tree-model-price.c:    
g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
(klass, sizeof(GNCQueryViewPriv));
gnucash/gnome-utils/gnc-period-select.c:    
g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
gnucash/gnome-utils/gnc-tree-model-account-types.c:    
g_type_class_add_private(klass,
sizeof(GncTreeModelAccountTypesPrivate));
gnucash/gnome-utils/gnc-plugin-file-history.c:    
g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
sizeof(GncCombottPrivate));
gnucash/gnome-utils/gnc-currency-edit.c:    
g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
gnucash/gnome-utils/gnc-tree-view-commodity.c:    
g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
gnucash/gnome-utils/gnc-plugin-manager.c:    
g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
gnucash/gnome-utils/gnc-plugin-menu-additions.c:    
g_type_class_add_private(klass, sizeof(GncPluginMenuAdditionsPrivate));
gnucash/gnome-utils/gnc-tree-view-account.c:    
g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
gnucash/gnome-utils/gnc-plugin-page.c:    
g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
gnucash/gnome-utils/gnc-tree-view-sx-list.c:    
g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
gnucash/gnome-utils/gnc-embedded-window.c:    
g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
gnucash/gnome-utils/gnc-tree-model.c:    g_type_class_add_private(klass,
sizeof(GncTreeModelPrivate));
gnucash/gnome-utils/gnc-date-format.c:    
g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
gnucash/gnome-utils/gnc-tree-view.c:    g_type_class_add_private(klass,
sizeof(GncTreeViewPrivate));
gnucash/gnome-utils/gnc-main-window.c:    
g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-search.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-report-gnome.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-stylesheets.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-utils.so
libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
sizeof(LotPrivate));
libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
sizeof(AccountPrivate));
libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
sizeof(CommodityPrivate));
libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
sizeof(BudgetPrivate));
libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
sizeof(QofInstancePrivate));
grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht gefunden

Looks like a need to change ?

regards,

Christoph
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
Hello,

compiling is possible for me when adding -Wno-deprecated-declarations to
CMAKE_CXX_FLAGS.

regards,

Christoph Holtermann

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2fcffb17..343808974 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=

  if (UNIX)
    set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
-Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations
-Wno-unused ${CMAKE_C_FLAGS}")
-  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
-Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
+  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
-Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
${CMAKE_CXX_FLAGS}")
    set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
-Wno-error=parentheses ${CMAKE_C_FLAGS}")
    set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
${CMAKE_C_FLAGS}")
  endif (UNIX)


Am 2018-12-04 12:51, schrieb [hidden email]:

> Hello,
>
> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into
> this error:
>
> [ 20%] Building CXX object
> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
> In function ‘void gnc_account_class_init(AccountClass*)’:
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
> [-Werror=deprecated-declarations]
>      g_type_class_add_private(klass, sizeof(AccountPrivate));
>                                                            ^
> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>  void     g_type_class_add_private       (gpointer                    
> g_class,
>           ^~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
> [-Werror=deprecated-declarations]
>      g_type_class_add_private(klass, sizeof(AccountPrivate));
>                                                            ^
> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>                  from
> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>  void     g_type_class_add_private       (gpointer                    
> g_class,
>           ^~~~~~~~~~~~~~~~~~~~~~~~
> At global scope:
> cc1plus: error: unrecognized command line option
> ‘-Wno-deprecated-register’ [-Werror]
> cc1plus: all warnings being treated as errors
> make[2]: ***
> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler 1
> make[1]: *** [CMakeFiles/Makefile2:5032:
> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
> make: *** [Makefile:163: all] Fehler 2
>
> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
> says that
>
>  Deprecate g_type_class_add_private()
>
> It's been 4 years and 8 development cycles since we introduced
> G_ADD_PRIVATE and offset-based private data access. It is now
> time to finally deprecate the old mechanism.
>
> Looking through the source I find:
>
> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
> g_type_class_add_private (gpointer g_class,
> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
> g_type_class_add_private (gpointer g_class,
> Übereinstimmungen in Binärdatei
> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
> gnucash/import-export/ofx/gnc-plugin-ofx.c:
> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
> gnucash/gnome-search/search-numeric.c:
> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
> gnucash/gnome-search/gnc-general-search.c:
> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
> gnucash/gnome-search/search-reconciled.c:
> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
> gnucash/gnome-search/search-int64.c:
> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
> gnucash/gnome-search/search-string.c:
> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
> gnucash/gnome-search/search-boolean.c:
> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
> gnucash/gnome-search/search-account.c:
> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
> gnucash/gnome-search/search-core-type.c:
> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
> gnucash/gnome-search/search-date.c:    g_type_class_add_private(klass,
> sizeof(GNCSearchDatePrivate));
> gnucash/gnome-search/search-double.c:
> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
> Übereinstimmungen in Binärdatei
> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
> g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
> Übereinstimmungen in Binärdatei
> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
> gnucash/report/report-gnome/gnc-plugin-page-report.c:
> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
> gnucash/gnome/gnc-plugin-account-tree.c:
> g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
> gnucash/gnome/gnc-plugin-register2.c:
> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
> gnucash/gnome/gnc-plugin-page-budget.c:
> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
> gnucash/gnome/gnc-plugin-register.c:
> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
> gnucash/gnome/gnc-plugin-page-register.c:
> g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
> sizeof(GNCSearchOwnerPrivate));
> gnucash/gnome/gnc-plugin-business.c:
> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
> gnucash/gnome/gnc-plugin-page-register2.c:
> g_type_class_add_private(klass,
> sizeof(GncPluginPageRegister2Private));
> gnucash/gnome/gnc-plugin-page-sx-list.c:
> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
> gnucash/gnome/gnc-plugin-page-invoice.c:
> g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
> sizeof(GncBudgetViewPrivate));
> gnucash/gnome/gnc-plugin-page-owner-tree.c:
> g_type_class_add_private(klass,
> sizeof(GncPluginPageOwnerTreePrivate));
> gnucash/gnome/gnc-plugin-page-account-tree.c:
> g_type_class_add_private(klass,
> sizeof(GncPluginPageAccountTreePrivate));
> gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
> sizeof(GncPluginBudgetPrivate));
> gnucash/gnome/gnc-plugin-basic-commands.c:
> g_type_class_add_private(klass,
> sizeof(GncPluginBasicCommandsPrivate));
> gnucash/gnome-utils/gnc-tree-view-owner.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
> sizeof(GNCSearchParamPrivate));
> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
> sizeof(GNCSearchParamSimplePrivate));
> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
> sizeof(GNCSearchParamCompoundPrivate));
> gnucash/gnome-utils/gnc-tree-model-selection.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelSelectionPrivate));
> gnucash/gnome-utils/gnc-tree-model-owner.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
> sizeof(GncPluginPrivate));
> gnucash/gnome-utils/gnc-tree-view-price.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
> Übereinstimmungen in Binärdatei
> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
> gnucash/gnome-utils/gnc-tree-model-account.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
> gnucash/gnome-utils/gnc-tree-model-commodity.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelCommodityPrivate));
> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
> g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
> gnucash/gnome-utils/gnc-tree-model-price.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
> (klass, sizeof(GNCQueryViewPriv));
> gnucash/gnome-utils/gnc-period-select.c:
> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
> gnucash/gnome-utils/gnc-tree-model-account-types.c:
> g_type_class_add_private(klass,
> sizeof(GncTreeModelAccountTypesPrivate));
> gnucash/gnome-utils/gnc-plugin-file-history.c:
> g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
> gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
> sizeof(GncCombottPrivate));
> gnucash/gnome-utils/gnc-currency-edit.c:
> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
> gnucash/gnome-utils/gnc-tree-view-commodity.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
> gnucash/gnome-utils/gnc-plugin-manager.c:
> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
> g_type_class_add_private(klass,
> sizeof(GncPluginMenuAdditionsPrivate));
> gnucash/gnome-utils/gnc-tree-view-account.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
> gnucash/gnome-utils/gnc-plugin-page.c:
> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
> gnucash/gnome-utils/gnc-embedded-window.c:
> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
> gnucash/gnome-utils/gnc-tree-model.c:
> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
> gnucash/gnome-utils/gnc-date-format.c:
> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
> gnucash/gnome-utils/gnc-tree-view.c:
> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
> gnucash/gnome-utils/gnc-main-window.c:
> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-search.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-report-gnome.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-stylesheets.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-utils.so
> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
> sizeof(LotPrivate));
> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
> sizeof(AccountPrivate));
> libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
> sizeof(CommodityPrivate));
> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
> sizeof(BudgetPrivate));
> libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
> sizeof(QofInstancePrivate));
> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht gefunden
>
> Looks like a need to change ?
>
> regards,
>
> Christoph
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

John Ralls
Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and it’s in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go ahead and change over in maint.

Would you like to make a PR?

Regards,
John Ralls


> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>
> Hello,
>
> compiling is possible for me when adding -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>
> regards,
>
> Christoph Holtermann
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index b2fcffb17..343808974 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>
> if (UNIX)
>   set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}")
> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>   set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>   set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
> endif (UNIX)
>
>
> Am 2018-12-04 12:51, schrieb [hidden email]:
>> Hello,
>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into this error:
>> [ 20%] Building CXX object
>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>> In function ‘void gnc_account_class_init(AccountClass*)’:
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>> [-Werror=deprecated-declarations]
>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>                                                           ^
>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>> void     g_type_class_add_private       (gpointer                    g_class,
>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>> [-Werror=deprecated-declarations]
>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>                                                           ^
>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>                 from
>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>> void     g_type_class_add_private       (gpointer                    g_class,
>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>> At global scope:
>> cc1plus: error: unrecognized command line option
>> ‘-Wno-deprecated-register’ [-Werror]
>> cc1plus: all warnings being treated as errors
>> make[2]: ***
>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler 1
>> make[1]: *** [CMakeFiles/Makefile2:5032:
>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>> make: *** [Makefile:163: all] Fehler 2
>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>> says that
>> Deprecate g_type_class_add_private()
>> It's been 4 years and 8 development cycles since we introduced
>> G_ADD_PRIVATE and offset-based private data access. It is now
>> time to finally deprecate the old mechanism.
>> Looking through the source I find:
>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>> g_type_class_add_private (gpointer g_class,
>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>> g_type_class_add_private (gpointer g_class,
>> Übereinstimmungen in Binärdatei
>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>> gnucash/gnome-search/search-numeric.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>> gnucash/gnome-search/gnc-general-search.c:
>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>> gnucash/gnome-search/search-reconciled.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
>> gnucash/gnome-search/search-int64.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>> gnucash/gnome-search/search-string.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>> gnucash/gnome-search/search-boolean.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>> gnucash/gnome-search/search-account.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>> gnucash/gnome-search/search-core-type.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>> gnucash/gnome-search/search-date.c:    g_type_class_add_private(klass,
>> sizeof(GNCSearchDatePrivate));
>> gnucash/gnome-search/search-double.c:
>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>> g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
>> gnucash/gnome/gnc-plugin-account-tree.c:
>> g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>> gnucash/gnome/gnc-plugin-register2.c:
>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>> gnucash/gnome/gnc-plugin-page-budget.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
>> gnucash/gnome/gnc-plugin-register.c:
>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>> gnucash/gnome/gnc-plugin-page-register.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>> sizeof(GNCSearchOwnerPrivate));
>> gnucash/gnome/gnc-plugin-business.c:
>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>> gnucash/gnome/gnc-plugin-page-register2.c:
>> g_type_class_add_private(klass,
>> sizeof(GncPluginPageRegister2Private));
>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
>> gnucash/gnome/gnc-plugin-page-invoice.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>> sizeof(GncBudgetViewPrivate));
>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>> g_type_class_add_private(klass,
>> sizeof(GncPluginPageOwnerTreePrivate));
>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>> g_type_class_add_private(klass,
>> sizeof(GncPluginPageAccountTreePrivate));
>> gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
>> sizeof(GncPluginBudgetPrivate));
>> gnucash/gnome/gnc-plugin-basic-commands.c:
>> g_type_class_add_private(klass,
>> sizeof(GncPluginBasicCommandsPrivate));
>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>> sizeof(GNCSearchParamPrivate));
>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>> sizeof(GNCSearchParamSimplePrivate));
>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>> sizeof(GNCSearchParamCompoundPrivate));
>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelSelectionPrivate));
>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
>> sizeof(GncPluginPrivate));
>> gnucash/gnome-utils/gnc-tree-view-price.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>> Übereinstimmungen in Binärdatei
>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>> gnucash/gnome-utils/gnc-tree-model-account.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelCommodityPrivate));
>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>> g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
>> gnucash/gnome-utils/gnc-tree-model-price.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>> (klass, sizeof(GNCQueryViewPriv));
>> gnucash/gnome-utils/gnc-period-select.c:
>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>> g_type_class_add_private(klass,
>> sizeof(GncTreeModelAccountTypesPrivate));
>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>> g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
>> gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
>> sizeof(GncCombottPrivate));
>> gnucash/gnome-utils/gnc-currency-edit.c:
>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
>> gnucash/gnome-utils/gnc-plugin-manager.c:
>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>> g_type_class_add_private(klass,
>> sizeof(GncPluginMenuAdditionsPrivate));
>> gnucash/gnome-utils/gnc-tree-view-account.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>> gnucash/gnome-utils/gnc-plugin-page.c:
>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>> gnucash/gnome-utils/gnc-embedded-window.c:
>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>> gnucash/gnome-utils/gnc-tree-model.c:
>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>> gnucash/gnome-utils/gnc-date-format.c:
>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>> gnucash/gnome-utils/gnc-tree-view.c:
>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>> gnucash/gnome-utils/gnc-main-window.c:
>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-search.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-report-gnome.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-stylesheets.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-utils.so
>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>> sizeof(LotPrivate));
>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>> sizeof(AccountPrivate));
>> libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
>> sizeof(CommodityPrivate));
>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>> sizeof(BudgetPrivate));
>> libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
>> sizeof(QofInstancePrivate));
>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht gefunden
>> Looks like a need to change ?
>> regards,
>> Christoph
>> _______________________________________________
>> gnucash-devel mailing list
>> [hidden email]
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
John,

Sure, I can do a pull request. I don't know if the place where I put the
flag
is the best place. I just put it there and it did the job.

regards,

Christoph

Am 2018-12-04 13:36, schrieb John Ralls:

> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and it’s
> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go ahead
> and change over in maint.
>
> Would you like to make a PR?
>
> Regards,
> John Ralls
>
>
>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>
>> Hello,
>>
>> compiling is possible for me when adding -Wno-deprecated-declarations
>> to CMAKE_CXX_FLAGS.
>>
>> regards,
>>
>> Christoph Holtermann
>>
>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>> index b2fcffb17..343808974 100644
>> --- a/CMakeLists.txt
>> +++ b/CMakeLists.txt
>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
>> ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>
>> if (UNIX)
>>   set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
>> -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations
>> -Wno-unused ${CMAKE_C_FLAGS}")
>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>> -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>> -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
>> ${CMAKE_CXX_FLAGS}")
>>   set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
>> -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>   set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE
>> -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>> endif (UNIX)
>>
>>
>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>> Hello,
>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into
>>> this error:
>>> [ 20%] Building CXX object
>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>> [-Werror=deprecated-declarations]
>>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>                                                           ^
>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>> void     g_type_class_add_private       (gpointer                    
>>> g_class,
>>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>> [-Werror=deprecated-declarations]
>>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>                                                           ^
>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>                 from
>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>> void     g_type_class_add_private       (gpointer                    
>>> g_class,
>>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>>> At global scope:
>>> cc1plus: error: unrecognized command line option
>>> ‘-Wno-deprecated-register’ [-Werror]
>>> cc1plus: all warnings being treated as errors
>>> make[2]: ***
>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler
>>> 1
>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>> make: *** [Makefile:163: all] Fehler 2
>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>> says that
>>> Deprecate g_type_class_add_private()
>>> It's been 4 years and 8 development cycles since we introduced
>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>> time to finally deprecate the old mechanism.
>>> Looking through the source I find:
>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>> g_type_class_add_private (gpointer g_class,
>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>> g_type_class_add_private (gpointer g_class,
>>> Übereinstimmungen in Binärdatei
>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>> gnucash/gnome-search/search-numeric.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>> gnucash/gnome-search/gnc-general-search.c:
>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>> gnucash/gnome-search/search-reconciled.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
>>> gnucash/gnome-search/search-int64.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>> gnucash/gnome-search/search-string.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>> gnucash/gnome-search/search-boolean.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>> gnucash/gnome-search/search-account.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>> gnucash/gnome-search/search-core-type.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>> gnucash/gnome-search/search-date.c:    
>>> g_type_class_add_private(klass,
>>> sizeof(GNCSearchDatePrivate));
>>> gnucash/gnome-search/search-double.c:
>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>> gnucash/gnome/gnc-plugin-register2.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
>>> gnucash/gnome/gnc-plugin-register.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>> gnucash/gnome/gnc-plugin-page-register.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginPageRegisterPrivate));
>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>> sizeof(GNCSearchOwnerPrivate));
>>> gnucash/gnome/gnc-plugin-business.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginPageRegister2Private));
>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
>>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>>> sizeof(GncBudgetViewPrivate));
>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginPageOwnerTreePrivate));
>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginPageAccountTreePrivate));
>>> gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
>>> sizeof(GncPluginBudgetPrivate));
>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginBasicCommandsPrivate));
>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>> gnucash/gnome-utils/search-param.c:    
>>> g_type_class_add_private(klass,
>>> sizeof(GNCSearchParamPrivate));
>>> gnucash/gnome-utils/search-param.c:    
>>> g_type_class_add_private(klass,
>>> sizeof(GNCSearchParamSimplePrivate));
>>> gnucash/gnome-utils/search-param.c:    
>>> g_type_class_add_private(klass,
>>> sizeof(GNCSearchParamCompoundPrivate));
>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncTreeModelSelectionPrivate));
>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
>>> sizeof(GncPluginPrivate));
>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>> Übereinstimmungen in Binärdatei
>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncTreeModelCommodityPrivate));
>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>> g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>> (klass, sizeof(GNCQueryViewPriv));
>>> gnucash/gnome-utils/gnc-period-select.c:
>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncTreeModelAccountTypesPrivate));
>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
>>> gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
>>> sizeof(GncCombottPrivate));
>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>> g_type_class_add_private(klass,
>>> sizeof(GncPluginMenuAdditionsPrivate));
>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>> gnucash/gnome-utils/gnc-tree-model.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>> gnucash/gnome-utils/gnc-date-format.c:
>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>> gnucash/gnome-utils/gnc-tree-view.c:
>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>> gnucash/gnome-utils/gnc-main-window.c:
>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>> Übereinstimmungen in Binärdatei
>>> lib64/gnucash/libgncmod-gnome-search.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
>>> Übereinstimmungen in Binärdatei
>>> lib64/gnucash/libgncmod-report-gnome.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>> Übereinstimmungen in Binärdatei
>>> lib64/gnucash/libgncmod-stylesheets.so
>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
>>> Übereinstimmungen in Binärdatei
>>> lib64/gnucash/libgncmod-gnome-utils.so
>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>> sizeof(LotPrivate));
>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>> sizeof(AccountPrivate));
>>> libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
>>> sizeof(CommodityPrivate));
>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>> sizeof(BudgetPrivate));
>>> libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
>>> sizeof(QofInstancePrivate));
>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht
>>> gefunden
>>> Looks like a need to change ?
>>> regards,
>>> Christoph
>>> _______________________________________________
>>> gnucash-devel mailing list
>>> [hidden email]
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>> _______________________________________________
>> gnucash-devel mailing list
>> [hidden email]
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

John Ralls
Christoph,

I meant a PR to replace g_type_class_add_private with G_ADD_PRIVATE.

If you just want to get the warning to not error out -Werror-no-deprecated-declarations would be better so that it lets the code compile with the warnings. Eventually someone will get irritated enough with the noisy compile that they’ll fix the deprecated function. It’ll just take a while for glib-2.50 to percolate through the distros that the not-bleeding-edge developers get the warnings.

Regards,
John Ralls

> On Dec 4, 2018, at 9:38 PM, [hidden email] wrote:
>
> John,
>
> Sure, I can do a pull request. I don't know if the place where I put the flag
> is the best place. I just put it there and it did the job.
>
> regards,
>
> Christoph
>
> Am 2018-12-04 13:36, schrieb John Ralls:
>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and it’s
>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go ahead
>> and change over in maint.
>> Would you like to make a PR?
>> Regards,
>> John Ralls
>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>> Hello,
>>> compiling is possible for me when adding -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>>> regards,
>>> Christoph Holtermann
>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>> index b2fcffb17..343808974 100644
>>> --- a/CMakeLists.txt
>>> +++ b/CMakeLists.txt
>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>> if (UNIX)
>>>  set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}")
>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>  set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>  set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>> endif (UNIX)
>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>> Hello,
>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into this error:
>>>> [ 20%] Building CXX object
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>>> [-Werror=deprecated-declarations]
>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>                                                          ^
>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>> void     g_type_class_add_private       (gpointer                    g_class,
>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>>> [-Werror=deprecated-declarations]
>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>                                                          ^
>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>                from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>> void     g_type_class_add_private       (gpointer                    g_class,
>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>> At global scope:
>>>> cc1plus: error: unrecognized command line option
>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>> cc1plus: all warnings being treated as errors
>>>> make[2]: ***
>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler 1
>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>> make: *** [Makefile:163: all] Fehler 2
>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>> says that
>>>> Deprecate g_type_class_add_private()
>>>> It's been 4 years and 8 development cycles since we introduced
>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>> time to finally deprecate the old mechanism.
>>>> Looking through the source I find:
>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>> g_type_class_add_private (gpointer g_class,
>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>> g_type_class_add_private (gpointer g_class,
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>> gnucash/gnome-search/search-numeric.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>> gnucash/gnome-search/gnc-general-search.c:
>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>> gnucash/gnome-search/search-reconciled.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
>>>> gnucash/gnome-search/search-int64.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>> gnucash/gnome-search/search-string.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>> gnucash/gnome-search/search-boolean.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>> gnucash/gnome-search/search-account.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>> gnucash/gnome-search/search-core-type.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>>> gnucash/gnome-search/search-date.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchDatePrivate));
>>>> gnucash/gnome-search/search-double.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
>>>> gnucash/gnome/gnc-plugin-register.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchOwnerPrivate));
>>>> gnucash/gnome/gnc-plugin-business.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageRegister2Private));
>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
>>>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>>>> sizeof(GncBudgetViewPrivate));
>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>> gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
>>>> sizeof(GncPluginBudgetPrivate));
>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamPrivate));
>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamSimplePrivate));
>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelSelectionPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>>> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
>>>> sizeof(GncPluginPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelCommodityPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>> g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>> (klass, sizeof(GNCQueryViewPriv));
>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
>>>> gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
>>>> sizeof(GncCombottPrivate));
>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-search.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-report-gnome.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-stylesheets.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-utils.so
>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>> sizeof(LotPrivate));
>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>> sizeof(AccountPrivate));
>>>> libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
>>>> sizeof(CommodityPrivate));
>>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>>> sizeof(BudgetPrivate));
>>>> libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
>>>> sizeof(QofInstancePrivate));
>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht gefunden
>>>> Looks like a need to change ?
>>>> regards,
>>>> Christoph
>>>> _______________________________________________
>>>> gnucash-devel mailing list
>>>> [hidden email]
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>> _______________________________________________
>>> gnucash-devel mailing list
>>> [hidden email]
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
In reply to this post by c.holtermann
John,

created a PR https://github.com/Gnucash/gnucash/pull/438

what I don't understand is that -Wno-deprecated-declarations
is actually being set one line below. Strange.

https://github.com/Gnucash/gnucash/commit/4c87dd05ec8f1da40292f3e2f0004418a573ab89#diff-af3b638bc2a3e6c650974192a53c7291

already adresses the issue. I have to recheck that.

regards,

Christoph

Am 2018-12-04 13:38, schrieb [hidden email]:

> John,
>
> Sure, I can do a pull request. I don't know if the place where I put
> the flag
> is the best place. I just put it there and it did the job.
>
> regards,
>
> Christoph
>
> Am 2018-12-04 13:36, schrieb John Ralls:
>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and it’s
>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go ahead
>> and change over in maint.
>>
>> Would you like to make a PR?
>>
>> Regards,
>> John Ralls
>>
>>
>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>>
>>> Hello,
>>>
>>> compiling is possible for me when adding -Wno-deprecated-declarations
>>> to CMAKE_CXX_FLAGS.
>>>
>>> regards,
>>>
>>> Christoph Holtermann
>>>
>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>> index b2fcffb17..343808974 100644
>>> --- a/CMakeLists.txt
>>> +++ b/CMakeLists.txt
>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
>>> ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>>
>>> if (UNIX)
>>>   set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
>>> -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations
>>> -Wno-unused ${CMAKE_C_FLAGS}")
>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>> -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>> -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
>>> ${CMAKE_CXX_FLAGS}")
>>>   set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
>>> -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>   set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE
>>> -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>> endif (UNIX)
>>>
>>>
>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>> Hello,
>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into
>>>> this error:
>>>> [ 20%] Building CXX object
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>> deprecated
>>>> [-Werror=deprecated-declarations]
>>>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>                                                           ^
>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>> void     g_type_class_add_private       (gpointer                    
>>>> g_class,
>>>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>> deprecated
>>>> [-Werror=deprecated-declarations]
>>>>     g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>                                                           ^
>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>                 from /usr/include/glib-2.0/glib-object.h:23,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>                 from
>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>> void     g_type_class_add_private       (gpointer                    
>>>> g_class,
>>>>          ^~~~~~~~~~~~~~~~~~~~~~~~
>>>> At global scope:
>>>> cc1plus: error: unrecognized command line option
>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>> cc1plus: all warnings being treated as errors
>>>> make[2]: ***
>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler
>>>> 1
>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>> make: *** [Makefile:163: all] Fehler 2
>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>> says that
>>>> Deprecate g_type_class_add_private()
>>>> It's been 4 years and 8 development cycles since we introduced
>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>> time to finally deprecate the old mechanism.
>>>> Looking through the source I find:
>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>> g_type_class_add_private (gpointer g_class,
>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>> g_type_class_add_private (gpointer g_class,
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>> gnucash/gnome-search/search-numeric.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>> gnucash/gnome-search/gnc-general-search.c:
>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>> gnucash/gnome-search/search-reconciled.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
>>>> gnucash/gnome-search/search-int64.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>> gnucash/gnome-search/search-string.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>> gnucash/gnome-search/search-boolean.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>> gnucash/gnome-search/search-account.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>> gnucash/gnome-search/search-core-type.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>>> gnucash/gnome-search/search-date.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GNCSearchDatePrivate));
>>>> gnucash/gnome-search/search-double.c:
>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginStylesheetsPrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginAccountTreePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
>>>> gnucash/gnome/gnc-plugin-register.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageRegisterPrivate));
>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>> sizeof(GNCSearchOwnerPrivate));
>>>> gnucash/gnome/gnc-plugin-business.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageRegister2Private));
>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageInvoicePrivate));
>>>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>>>> sizeof(GncBudgetViewPrivate));
>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>> gnucash/gnome/gnc-plugin-budget.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginBudgetPrivate));
>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>> gnucash/gnome-utils/search-param.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamPrivate));
>>>> gnucash/gnome-utils/search-param.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamSimplePrivate));
>>>> gnucash/gnome-utils/search-param.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncTreeModelSelectionPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>>> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
>>>> sizeof(GncPluginPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>> Übereinstimmungen in Binärdatei
>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncTreeModelCommodityPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>> g_type_class_add_private (klass,
>>>> sizeof(GncTreeViewSplitRegPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>> (klass, sizeof(GNCQueryViewPriv));
>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginFileHistoryPrivate));
>>>> gnucash/gnome-utils/gnc-combott.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncCombottPrivate));
>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncTreeViewCommodityPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>> g_type_class_add_private(klass,
>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-gnome-search.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-qif-import.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-log-replay.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-report-gnome.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-csv-import.so
>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-stylesheets.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-csv-export.so
>>>> Übereinstimmungen in Binärdatei
>>>> lib64/gnucash/libgncmod-gnome-utils.so
>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>> sizeof(LotPrivate));
>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>> sizeof(AccountPrivate));
>>>> libgnucash/engine/gnc-commodity.c:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(CommodityPrivate));
>>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>>> sizeof(BudgetPrivate));
>>>> libgnucash/engine/qofinstance.cpp:    
>>>> g_type_class_add_private(klass,
>>>> sizeof(QofInstancePrivate));
>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht
>>>> gefunden
>>>> Looks like a need to change ?
>>>> regards,
>>>> Christoph
>>>> _______________________________________________
>>>> gnucash-devel mailing list
>>>> [hidden email]
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>> _______________________________________________
>>> gnucash-devel mailing list
>>> [hidden email]
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
In reply to this post by John Ralls
John,

well that was a misunderstanding. I'd rather stay away from the c++
part for the moment and stick to my selfset python goals to not get
lost in multiple tasks.

It sounds reasonable to me to not just suppress deprecation warnings
as that may eventually break the code.

Is there a general "deprecation policy" for this project ?

regards,

Christoph

Am 2018-12-04 13:47, schrieb John Ralls:

> Christoph,
>
> I meant a PR to replace g_type_class_add_private with G_ADD_PRIVATE.
>
> If you just want to get the warning to not error out
> -Werror-no-deprecated-declarations would be better so that it lets the
> code compile with the warnings. Eventually someone will get irritated
> enough with the noisy compile that they’ll fix the deprecated
> function. It’ll just take a while for glib-2.50 to percolate through
> the distros that the not-bleeding-edge developers get the warnings.
>
> Regards,
> John Ralls
>
>> On Dec 4, 2018, at 9:38 PM, [hidden email] wrote:
>>
>> John,
>>
>> Sure, I can do a pull request. I don't know if the place where I put
>> the flag
>> is the best place. I just put it there and it did the job.
>>
>> regards,
>>
>> Christoph
>>
>> Am 2018-12-04 13:36, schrieb John Ralls:
>>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and
>>> it’s
>>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go
>>> ahead
>>> and change over in maint.
>>> Would you like to make a PR?
>>> Regards,
>>> John Ralls
>>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>>> Hello,
>>>> compiling is possible for me when adding
>>>> -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>>>> regards,
>>>> Christoph Holtermann
>>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>>> index b2fcffb17..343808974 100644
>>>> --- a/CMakeLists.txt
>>>> +++ b/CMakeLists.txt
>>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
>>>> ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>>> if (UNIX)
>>>>  set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
>>>> -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations
>>>> -Wno-unused ${CMAKE_C_FLAGS}")
>>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>> -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>> -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
>>>> ${CMAKE_CXX_FLAGS}")
>>>>  set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
>>>> -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>>  set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE
>>>> -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>>> endif (UNIX)
>>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>>> Hello,
>>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into
>>>>> this error:
>>>>> [ 20%] Building CXX object
>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>> deprecated
>>>>> [-Werror=deprecated-declarations]
>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>                                                          ^
>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>> void     g_type_class_add_private       (gpointer                  
>>>>>  g_class,
>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>> deprecated
>>>>> [-Werror=deprecated-declarations]
>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>                                                          ^
>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>                from
>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>> void     g_type_class_add_private       (gpointer                  
>>>>>  g_class,
>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>> At global scope:
>>>>> cc1plus: error: unrecognized command line option
>>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>>> cc1plus: all warnings being treated as errors
>>>>> make[2]: ***
>>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o]
>>>>> Fehler 1
>>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>>> make: *** [Makefile:163: all] Fehler 2
>>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>>> says that
>>>>> Deprecate g_type_class_add_private()
>>>>> It's been 4 years and 8 development cycles since we introduced
>>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>>> time to finally deprecate the old mechanism.
>>>>> Looking through the source I find:
>>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>>> g_type_class_add_private (gpointer g_class,
>>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>>> g_type_class_add_private (gpointer g_class,
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>>> gnucash/gnome-search/search-numeric.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>>> gnucash/gnome-search/gnc-general-search.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>>> gnucash/gnome-search/search-reconciled.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchReconciledPrivate));
>>>>> gnucash/gnome-search/search-int64.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>>> gnucash/gnome-search/search-string.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>>> gnucash/gnome-search/search-boolean.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>>> gnucash/gnome-search/search-account.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>>> gnucash/gnome-search/search-core-type.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>>>> gnucash/gnome-search/search-date.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchDatePrivate));
>>>>> gnucash/gnome-search/search-double.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginStylesheetsPrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageReportPrivate));
>>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginAccountTreePrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageBudgetPrivate));
>>>>> gnucash/gnome/gnc-plugin-register.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageRegisterPrivate));
>>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchOwnerPrivate));
>>>>> gnucash/gnome/gnc-plugin-business.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageRegister2Private));
>>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageSxListPrivate));
>>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageInvoicePrivate));
>>>>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>>>>> sizeof(GncBudgetViewPrivate));
>>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>>> gnucash/gnome/gnc-plugin-budget.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginBudgetPrivate));
>>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>>> gnucash/gnome-utils/search-param.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchParamPrivate));
>>>>> gnucash/gnome-utils/search-param.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchParamSimplePrivate));
>>>>> gnucash/gnome-utils/search-param.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncTreeModelSelectionPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>>>> gnucash/gnome-utils/gnc-plugin.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>>> Übereinstimmungen in Binärdatei
>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncTreeModelAccountPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncTreeModelCommodityPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>>> g_type_class_add_private (klass,
>>>>> sizeof(GncTreeViewSplitRegPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>>> (klass, sizeof(GNCQueryViewPriv));
>>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginFileHistoryPrivate));
>>>>> gnucash/gnome-utils/gnc-combott.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncCombottPrivate));
>>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncTreeViewCommodityPrivate));
>>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-gnome-search.so
>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-qif-import.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-log-replay.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-report-gnome.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-csv-import.so
>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-stylesheets.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-csv-export.so
>>>>> Übereinstimmungen in Binärdatei
>>>>> lib64/gnucash/libgncmod-gnome-utils.so
>>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>>> sizeof(LotPrivate));
>>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>>> sizeof(AccountPrivate));
>>>>> libgnucash/engine/gnc-commodity.c:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(CommodityPrivate));
>>>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>>>> sizeof(BudgetPrivate));
>>>>> libgnucash/engine/qofinstance.cpp:    
>>>>> g_type_class_add_private(klass,
>>>>> sizeof(QofInstancePrivate));
>>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht
>>>>> gefunden
>>>>> Looks like a need to change ?
>>>>> regards,
>>>>> Christoph
>>>>> _______________________________________________
>>>>> gnucash-devel mailing list
>>>>> [hidden email]
>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>> _______________________________________________
>>>> gnucash-devel mailing list
>>>> [hidden email]
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
Hello,

well I got a bit curious...

Of the cpp files it is Account.cpp and qofinstance.cpp.

Account.cpp seems rather easy to fix:

diff --git a/libgnucash/engine/Account.cpp
b/libgnucash/engine/Account.cpp
index 9b770f24c..eafb1b2fb 100644
--- a/libgnucash/engine/Account.cpp
+++ b/libgnucash/engine/Account.cpp
@@ -252,7 +252,7 @@ mark_account (Account *acc)
  \********************************************************************/

  /* GObject Initialization */
-G_DEFINE_TYPE(Account, gnc_account, QOF_TYPE_INSTANCE)
+G_DEFINE_TYPE_WITH_PRIVATE(Account, gnc_account, QOF_TYPE_INSTANCE)

  static void
  gnc_account_init(Account* acc)
@@ -577,8 +577,6 @@ gnc_account_class_init (AccountClass *klass)
      gobject_class->set_property = gnc_account_set_property;
      gobject_class->get_property = gnc_account_get_property;

-    g_type_class_add_private(klass, sizeof(AccountPrivate));
-
      g_object_class_install_property
      (gobject_class,
       PROP_NAME,

as described in

https://www.bassi.io/articles/2013/06/21/the-king-is-dead/

regards,

Christoph


Am 2018-12-04 16:42, schrieb [hidden email]:

> John,
>
> well that was a misunderstanding. I'd rather stay away from the c++
> part for the moment and stick to my selfset python goals to not get
> lost in multiple tasks.
>
> It sounds reasonable to me to not just suppress deprecation warnings
> as that may eventually break the code.
>
> Is there a general "deprecation policy" for this project ?
>
> regards,
>
> Christoph
>
> Am 2018-12-04 13:47, schrieb John Ralls:
>> Christoph,
>>
>> I meant a PR to replace g_type_class_add_private with G_ADD_PRIVATE.
>>
>> If you just want to get the warning to not error out
>> -Werror-no-deprecated-declarations would be better so that it lets the
>> code compile with the warnings. Eventually someone will get irritated
>> enough with the noisy compile that they’ll fix the deprecated
>> function. It’ll just take a while for glib-2.50 to percolate through
>> the distros that the not-bleeding-edge developers get the warnings.
>>
>> Regards,
>> John Ralls
>>
>>> On Dec 4, 2018, at 9:38 PM, [hidden email] wrote:
>>>
>>> John,
>>>
>>> Sure, I can do a pull request. I don't know if the place where I put
>>> the flag
>>> is the best place. I just put it there and it did the job.
>>>
>>> regards,
>>>
>>> Christoph
>>>
>>> Am 2018-12-04 13:36, schrieb John Ralls:
>>>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and
>>>> it’s
>>>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go
>>>> ahead
>>>> and change over in maint.
>>>> Would you like to make a PR?
>>>> Regards,
>>>> John Ralls
>>>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>>>> Hello,
>>>>> compiling is possible for me when adding
>>>>> -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>>>>> regards,
>>>>> Christoph Holtermann
>>>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>>>> index b2fcffb17..343808974 100644
>>>>> --- a/CMakeLists.txt
>>>>> +++ b/CMakeLists.txt
>>>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
>>>>> ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>>>> if (UNIX)
>>>>>  set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
>>>>> -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations
>>>>> -Wno-unused ${CMAKE_C_FLAGS}")
>>>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>>> -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>>> -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
>>>>> ${CMAKE_CXX_FLAGS}")
>>>>>  set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
>>>>> -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>>>  set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE
>>>>> -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>>>> endif (UNIX)
>>>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>>>> Hello,
>>>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran
>>>>>> into this error:
>>>>>> [ 20%] Building CXX object
>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>>> deprecated
>>>>>> [-Werror=deprecated-declarations]
>>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>                                                          ^
>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>>> void     g_type_class_add_private       (gpointer                  
>>>>>>   g_class,
>>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>>> deprecated
>>>>>> [-Werror=deprecated-declarations]
>>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>                                                          ^
>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>                from
>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>>> void     g_type_class_add_private       (gpointer                  
>>>>>>   g_class,
>>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>> At global scope:
>>>>>> cc1plus: error: unrecognized command line option
>>>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>>>> cc1plus: all warnings being treated as errors
>>>>>> make[2]: ***
>>>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o]
>>>>>> Fehler 1
>>>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>>>> make: *** [Makefile:163: all] Fehler 2
>>>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>>>> says that
>>>>>> Deprecate g_type_class_add_private()
>>>>>> It's been 4 years and 8 development cycles since we introduced
>>>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>>>> time to finally deprecate the old mechanism.
>>>>>> Looking through the source I find:
>>>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginQifImportPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginCsvExportPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginCsvImportPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginLogreplayPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>>>> gnucash/gnome-search/search-numeric.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>>>> gnucash/gnome-search/gnc-general-search.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>>>> gnucash/gnome-search/search-reconciled.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchReconciledPrivate));
>>>>>> gnucash/gnome-search/search-int64.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>>>> gnucash/gnome-search/search-string.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>>>> gnucash/gnome-search/search-boolean.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>>>> gnucash/gnome-search/search-account.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>>>> gnucash/gnome-search/search-core-type.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>>>>> gnucash/gnome-search/search-date.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchDatePrivate));
>>>>>> gnucash/gnome-search/search-double.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginStylesheetsPrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageReportPrivate));
>>>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginAccountTreePrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginRegister2Private));
>>>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageBudgetPrivate));
>>>>>> gnucash/gnome/gnc-plugin-register.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageRegisterPrivate));
>>>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchOwnerPrivate));
>>>>>> gnucash/gnome/gnc-plugin-business.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageRegister2Private));
>>>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageSxListPrivate));
>>>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageInvoicePrivate));
>>>>>> gnucash/gnome/gnc-budget-view.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncBudgetViewPrivate));
>>>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>>>> gnucash/gnome/gnc-plugin-budget.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginBudgetPrivate));
>>>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchParamPrivate));
>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchParamSimplePrivate));
>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeModelSelectionPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>>>>> gnucash/gnome-utils/gnc-plugin.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeModelAccountPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeModelCommodityPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>>>> g_type_class_add_private (klass,
>>>>>> sizeof(GncTreeViewSplitRegPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>>>> (klass, sizeof(GNCQueryViewPriv));
>>>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginFileHistoryPrivate));
>>>>>> gnucash/gnome-utils/gnc-combott.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncCombottPrivate));
>>>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeViewCommodityPrivate));
>>>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(GncTreeViewAccountPrivate));
>>>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-gnome-search.so
>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-qif-import.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-log-replay.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-report-gnome.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-csv-import.so
>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-stylesheets.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-csv-export.so
>>>>>> Übereinstimmungen in Binärdatei
>>>>>> lib64/gnucash/libgncmod-gnome-utils.so
>>>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>>>> sizeof(LotPrivate));
>>>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>>>> sizeof(AccountPrivate));
>>>>>> libgnucash/engine/gnc-commodity.c:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(CommodityPrivate));
>>>>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>>>>> sizeof(BudgetPrivate));
>>>>>> libgnucash/engine/qofinstance.cpp:    
>>>>>> g_type_class_add_private(klass,
>>>>>> sizeof(QofInstancePrivate));
>>>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht
>>>>>> gefunden
>>>>>> Looks like a need to change ?
>>>>>> regards,
>>>>>> Christoph
>>>>>> _______________________________________________
>>>>>> gnucash-devel mailing list
>>>>>> [hidden email]
>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>> _______________________________________________
>>>>> gnucash-devel mailing list
>>>>> [hidden email]
>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

c.holtermann
Hi there,

couldn't stop myself from trying. I did a pull request for
the two c++ files:

https://github.com/Gnucash/gnucash/pull/439

please have a look at it.

regards,

Christoph

Am 2018-12-04 19:43, schrieb [hidden email]:

> Hello,
>
> well I got a bit curious...
>
> Of the cpp files it is Account.cpp and qofinstance.cpp.
>
> Account.cpp seems rather easy to fix:
>
> diff --git a/libgnucash/engine/Account.cpp
> b/libgnucash/engine/Account.cpp
> index 9b770f24c..eafb1b2fb 100644
> --- a/libgnucash/engine/Account.cpp
> +++ b/libgnucash/engine/Account.cpp
> @@ -252,7 +252,7 @@ mark_account (Account *acc)
>  \********************************************************************/
>
>  /* GObject Initialization */
> -G_DEFINE_TYPE(Account, gnc_account, QOF_TYPE_INSTANCE)
> +G_DEFINE_TYPE_WITH_PRIVATE(Account, gnc_account, QOF_TYPE_INSTANCE)
>
>  static void
>  gnc_account_init(Account* acc)
> @@ -577,8 +577,6 @@ gnc_account_class_init (AccountClass *klass)
>      gobject_class->set_property = gnc_account_set_property;
>      gobject_class->get_property = gnc_account_get_property;
>
> -    g_type_class_add_private(klass, sizeof(AccountPrivate));
> -
>      g_object_class_install_property
>      (gobject_class,
>       PROP_NAME,
>
> as described in
>
> https://www.bassi.io/articles/2013/06/21/the-king-is-dead/
>
> regards,
>
> Christoph
>
>
> Am 2018-12-04 16:42, schrieb [hidden email]:
>> John,
>>
>> well that was a misunderstanding. I'd rather stay away from the c++
>> part for the moment and stick to my selfset python goals to not get
>> lost in multiple tasks.
>>
>> It sounds reasonable to me to not just suppress deprecation warnings
>> as that may eventually break the code.
>>
>> Is there a general "deprecation policy" for this project ?
>>
>> regards,
>>
>> Christoph
>>
>> Am 2018-12-04 13:47, schrieb John Ralls:
>>> Christoph,
>>>
>>> I meant a PR to replace g_type_class_add_private with G_ADD_PRIVATE.
>>>
>>> If you just want to get the warning to not error out
>>> -Werror-no-deprecated-declarations would be better so that it lets
>>> the
>>> code compile with the warnings. Eventually someone will get irritated
>>> enough with the noisy compile that they’ll fix the deprecated
>>> function. It’ll just take a while for glib-2.50 to percolate through
>>> the distros that the not-bleeding-edge developers get the warnings.
>>>
>>> Regards,
>>> John Ralls
>>>
>>>> On Dec 4, 2018, at 9:38 PM, [hidden email] wrote:
>>>>
>>>> John,
>>>>
>>>> Sure, I can do a pull request. I don't know if the place where I put
>>>> the flag
>>>> is the best place. I just put it there and it did the job.
>>>>
>>>> regards,
>>>>
>>>> Christoph
>>>>
>>>> Am 2018-12-04 13:36, schrieb John Ralls:
>>>>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and
>>>>> it’s
>>>>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go
>>>>> ahead
>>>>> and change over in maint.
>>>>> Would you like to make a PR?
>>>>> Regards,
>>>>> John Ralls
>>>>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>>>>> Hello,
>>>>>> compiling is possible for me when adding
>>>>>> -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>>>>>> regards,
>>>>>> Christoph Holtermann
>>>>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>>>>> index b2fcffb17..343808974 100644
>>>>>> --- a/CMakeLists.txt
>>>>>> +++ b/CMakeLists.txt
>>>>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11
>>>>>> ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>>>>> if (UNIX)
>>>>>>  set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement
>>>>>> -Wno-pointer-sign -Wall -Wmissing-prototypes
>>>>>> -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}")
>>>>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>>>> -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations
>>>>>> -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses
>>>>>> ${CMAKE_CXX_FLAGS}")
>>>>>>  set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11
>>>>>> -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>>>>  set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE
>>>>>> -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>>>>> endif (UNIX)
>>>>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>>>>> Hello,
>>>>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran
>>>>>>> into this error:
>>>>>>> [ 20%] Building CXX object
>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>>>> deprecated
>>>>>>> [-Werror=deprecated-declarations]
>>>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>>                                                          ^
>>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared
>>>>>>> here
>>>>>>> void     g_type_class_add_private       (gpointer                
>>>>>>>    g_class,
>>>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is
>>>>>>> deprecated
>>>>>>> [-Werror=deprecated-declarations]
>>>>>>>    g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>>                                                          ^
>>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>>                from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>>                from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>>                from
>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared
>>>>>>> here
>>>>>>> void     g_type_class_add_private       (gpointer                
>>>>>>>    g_class,
>>>>>>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>> At global scope:
>>>>>>> cc1plus: error: unrecognized command line option
>>>>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>>>>> cc1plus: all warnings being treated as errors
>>>>>>> make[2]: ***
>>>>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o]
>>>>>>> Fehler 1
>>>>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>>>>> make: *** [Makefile:163: all] Fehler 2
>>>>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>>>>> says that
>>>>>>> Deprecate g_type_class_add_private()
>>>>>>> It's been 4 years and 8 development cycles since we introduced
>>>>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>>>>> time to finally deprecate the old mechanism.
>>>>>>> Looking through the source I find:
>>>>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginQifImportPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginCsvExportPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginCsvImportPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginLogreplayPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>>>>> gnucash/gnome-search/search-numeric.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>>>>> gnucash/gnome-search/gnc-general-search.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>>>>> gnucash/gnome-search/search-reconciled.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchReconciledPrivate));
>>>>>>> gnucash/gnome-search/search-int64.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>>>>> gnucash/gnome-search/search-string.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>>>>> gnucash/gnome-search/search-boolean.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>>>>> gnucash/gnome-search/search-account.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>>>>> gnucash/gnome-search/search-core-type.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchCoreTypePrivate));
>>>>>>> gnucash/gnome-search/search-date.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchDatePrivate));
>>>>>>> gnucash/gnome-search/search-double.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginStylesheetsPrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageReportPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginAccountTreePrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginRegister2Private));
>>>>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageBudgetPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-register.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginRegisterPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageRegisterPrivate));
>>>>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchOwnerPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-business.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginBusinessPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageRegister2Private));
>>>>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageSxListPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageInvoicePrivate));
>>>>>>> gnucash/gnome/gnc-budget-view.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncBudgetViewPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>>>>> gnucash/gnome/gnc-plugin-budget.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginBudgetPrivate));
>>>>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchParamPrivate));
>>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchParamSimplePrivate));
>>>>>>> gnucash/gnome-utils/search-param.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelSelectionPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelOwnerPrivate));
>>>>>>> gnucash/gnome-utils/gnc-plugin.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelAccountPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelCommodityPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>>>>> g_type_class_add_private (klass,
>>>>>>> sizeof(GncTreeViewSplitRegPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelPricePrivate));
>>>>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>>>>> (klass, sizeof(GNCQueryViewPriv));
>>>>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginFileHistoryPrivate));
>>>>>>> gnucash/gnome-utils/gnc-combott.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncCombottPrivate));
>>>>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeViewCommodityPrivate));
>>>>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeViewAccountPrivate));
>>>>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncTreeViewSxListPrivate));
>>>>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(GncEmbeddedWindowPrivate));
>>>>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-gnome-search.so
>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-qif-import.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-log-replay.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-report-gnome.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-csv-import.so
>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-stylesheets.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-csv-export.so
>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>> lib64/gnucash/libgncmod-gnome-utils.so
>>>>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>>>>> sizeof(LotPrivate));
>>>>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>>>>> sizeof(AccountPrivate));
>>>>>>> libgnucash/engine/gnc-commodity.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(CommodityPrivate));
>>>>>>> libgnucash/engine/gnc-budget.c:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(BudgetPrivate));
>>>>>>> libgnucash/engine/qofinstance.cpp:    
>>>>>>> g_type_class_add_private(klass,
>>>>>>> sizeof(QofInstancePrivate));
>>>>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht
>>>>>>> gefunden
>>>>>>> Looks like a need to change ?
>>>>>>> regards,
>>>>>>> Christoph
>>>>>>> _______________________________________________
>>>>>>> gnucash-devel mailing list
>>>>>>> [hidden email]
>>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>>> _______________________________________________
>>>>>> gnucash-devel mailing list
>>>>>> [hidden email]
>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>> _______________________________________________
>> gnucash-devel mailing list
>> [hidden email]
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Deprecate g_type_class_add_private()

John Ralls


> On Dec 5, 2018, at 5:09 AM, [hidden email] wrote:
>
> Hi there,
>
> couldn't stop myself from trying. I did a pull request for
> the two c++ files:

;-)

I need to dig into it myself, but it looks mostly right from my first look. I’ll put any further comments on the PR. Thanks for finding Emmanuel’s tutorial.

Regards,
John Ralls

>
> https://github.com/Gnucash/gnucash/pull/439
>
> please have a look at it.
>
> regards,
>
> Christoph
>
> Am 2018-12-04 19:43, schrieb [hidden email]:
>> Hello,
>> well I got a bit curious...
>> Of the cpp files it is Account.cpp and qofinstance.cpp.
>> Account.cpp seems rather easy to fix:
>> diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
>> index 9b770f24c..eafb1b2fb 100644
>> --- a/libgnucash/engine/Account.cpp
>> +++ b/libgnucash/engine/Account.cpp
>> @@ -252,7 +252,7 @@ mark_account (Account *acc)
>> \********************************************************************/
>> /* GObject Initialization */
>> -G_DEFINE_TYPE(Account, gnc_account, QOF_TYPE_INSTANCE)
>> +G_DEFINE_TYPE_WITH_PRIVATE(Account, gnc_account, QOF_TYPE_INSTANCE)
>> static void
>> gnc_account_init(Account* acc)
>> @@ -577,8 +577,6 @@ gnc_account_class_init (AccountClass *klass)
>>     gobject_class->set_property = gnc_account_set_property;
>>     gobject_class->get_property = gnc_account_get_property;
>> -    g_type_class_add_private(klass, sizeof(AccountPrivate));
>> -
>>     g_object_class_install_property
>>     (gobject_class,
>>      PROP_NAME,
>> as described in
>> https://www.bassi.io/articles/2013/06/21/the-king-is-dead/
>> regards,
>> Christoph
>> Am 2018-12-04 16:42, schrieb [hidden email]:
>>> John,
>>> well that was a misunderstanding. I'd rather stay away from the c++
>>> part for the moment and stick to my selfset python goals to not get
>>> lost in multiple tasks.
>>> It sounds reasonable to me to not just suppress deprecation warnings
>>> as that may eventually break the code.
>>> Is there a general "deprecation policy" for this project ?
>>> regards,
>>> Christoph
>>> Am 2018-12-04 13:47, schrieb John Ralls:
>>>> Christoph,
>>>> I meant a PR to replace g_type_class_add_private with G_ADD_PRIVATE.
>>>> If you just want to get the warning to not error out
>>>> -Werror-no-deprecated-declarations would be better so that it lets the
>>>> code compile with the warnings. Eventually someone will get irritated
>>>> enough with the noisy compile that they’ll fix the deprecated
>>>> function. It’ll just take a while for glib-2.50 to percolate through
>>>> the distros that the not-bleeding-edge developers get the warnings.
>>>> Regards,
>>>> John Ralls
>>>>> On Dec 4, 2018, at 9:38 PM, [hidden email] wrote:
>>>>> John,
>>>>> Sure, I can do a pull request. I don't know if the place where I put the flag
>>>>> is the best place. I just put it there and it did the job.
>>>>> regards,
>>>>> Christoph
>>>>> Am 2018-12-04 13:36, schrieb John Ralls:
>>>>>> Heh, OK. Emanuel actually committed G_ADD_PRIVATE in May 2013 and it’s
>>>>>> in 2.37. Our “old standard”, Ubuntu 14.04, has 2.40 so we can go ahead
>>>>>> and change over in maint.
>>>>>> Would you like to make a PR?
>>>>>> Regards,
>>>>>> John Ralls
>>>>>>> On Dec 4, 2018, at 9:03 PM, [hidden email] wrote:
>>>>>>> Hello,
>>>>>>> compiling is possible for me when adding -Wno-deprecated-declarations to CMAKE_CXX_FLAGS.
>>>>>>> regards,
>>>>>>> Christoph Holtermann
>>>>>>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>>>>>>> index b2fcffb17..343808974 100644
>>>>>>> --- a/CMakeLists.txt
>>>>>>> +++ b/CMakeLists.txt
>>>>>>> @@ -572,7 +572,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=
>>>>>>> if (UNIX)
>>>>>>> set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}")
>>>>>>> -  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>>>>> +  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-deprecated-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
>>>>>>> set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses ${CMAKE_C_FLAGS}")
>>>>>>> set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
>>>>>>> endif (UNIX)
>>>>>>> Am 2018-12-04 12:51, schrieb [hidden email]:
>>>>>>>> Hello,
>>>>>>>> I just tried to compile gnucash on OpenSuse Tumbleweed and ran into this error:
>>>>>>>> [ 20%] Building CXX object
>>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:
>>>>>>>> In function ‘void gnc_account_class_init(AccountClass*)’:
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>>>>>>> [-Werror=deprecated-declarations]
>>>>>>>>   g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>>>                                                         ^
>>>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>>>               from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>>>               from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>>>>> void     g_type_class_add_private       (gpointer                    g_class,
>>>>>>>>        ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:580:59:
>>>>>>>> error: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated
>>>>>>>> [-Werror=deprecated-declarations]
>>>>>>>>   g_type_class_add_private(klass, sizeof(AccountPrivate));
>>>>>>>>                                                         ^
>>>>>>>> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>>>>>>>>               from /usr/include/glib-2.0/gobject/gbinding.h:29,
>>>>>>>>               from /usr/include/glib-2.0/glib-object.h:23,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/guid.h:34,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qofid.h:82,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/qof.h:72,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.h:47,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/AccountP.h:42,
>>>>>>>>               from
>>>>>>>> /usr/local/src/gnucash/gnucash-git-fork-c.holtermann/libgnucash/engine/Account.cpp:34:
>>>>>>>> /usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
>>>>>>>> void     g_type_class_add_private       (gpointer                    g_class,
>>>>>>>>        ^~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>>> At global scope:
>>>>>>>> cc1plus: error: unrecognized command line option
>>>>>>>> ‘-Wno-deprecated-register’ [-Werror]
>>>>>>>> cc1plus: all warnings being treated as errors
>>>>>>>> make[2]: ***
>>>>>>>> [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:162:
>>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Fehler 1
>>>>>>>> make[1]: *** [CMakeFiles/Makefile2:5032:
>>>>>>>> libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Fehler 2
>>>>>>>> make: *** [Makefile:163: all] Fehler 2
>>>>>>>> https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e
>>>>>>>> says that
>>>>>>>> Deprecate g_type_class_add_private()
>>>>>>>> It's been 4 years and 8 development cycles since we introduced
>>>>>>>> G_ADD_PRIVATE and offset-based private data access. It is now
>>>>>>>> time to finally deprecate the old mechanism.
>>>>>>>> Looking through the source I find:
>>>>>>>> common/test-core/CMakeFiles/unittest_support.dir/swig-unittest-support-python.c.i:void
>>>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>>>> common/test-core/CMakeFiles/test-core.dir/unittest-support.c.i:void
>>>>>>>> g_type_class_add_private (gpointer g_class,
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/import-export/qif-imp/CMakeFiles/gncmod-qif-import.dir/gnc-plugin-qif-import.c.o
>>>>>>>> gnucash/import-export/qif-imp/gnc-plugin-qif-import.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginQifImportPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/import-export/csv-exp/CMakeFiles/gncmod-csv-export.dir/gnc-plugin-csv-export.c.o
>>>>>>>> gnucash/import-export/csv-exp/gnc-plugin-csv-export.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvExportPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/gnc-plugin-csv-import.c.o
>>>>>>>> gnucash/import-export/csv-imp/gnc-plugin-csv-import.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginCsvImportPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/import-export/log-replay/CMakeFiles/gncmod-log-replay.dir/gnc-plugin-log-replay.c.o
>>>>>>>> gnucash/import-export/log-replay/gnc-plugin-log-replay.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginLogreplayPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/import-export/ofx/CMakeFiles/gncmod-ofx.dir/gnc-plugin-ofx.c.o
>>>>>>>> gnucash/import-export/ofx/gnc-plugin-ofx.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginOfxPrivate));
>>>>>>>> gnucash/gnome-search/search-numeric.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchNumericPrivate));
>>>>>>>> gnucash/gnome-search/gnc-general-search.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCGeneralSearchPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-numeric.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-string.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-double.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-date.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-core-type.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-account.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/gnc-general-search.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-boolean.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-reconciled.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-search/CMakeFiles/gncmod-gnome-search.dir/search-int64.c.o
>>>>>>>> gnucash/gnome-search/search-reconciled.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchReconciledPrivate));
>>>>>>>> gnucash/gnome-search/search-int64.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchInt64Private));
>>>>>>>> gnucash/gnome-search/search-string.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchStringPrivate));
>>>>>>>> gnucash/gnome-search/search-boolean.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchBooleanPrivate));
>>>>>>>> gnucash/gnome-search/search-account.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchAccountPrivate));
>>>>>>>> gnucash/gnome-search/search-core-type.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchCoreTypePrivate));
>>>>>>>> gnucash/gnome-search/search-date.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GNCSearchDatePrivate));
>>>>>>>> gnucash/gnome-search/search-double.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCSearchDoublePrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/report/stylesheets/CMakeFiles/gncmod-stylesheets.dir/gnc-plugin-stylesheets.c.o
>>>>>>>> gnucash/report/stylesheets/gnc-plugin-stylesheets.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginStylesheetsPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/report/report-gnome/CMakeFiles/gncmod-report-gnome.dir/gnc-plugin-page-report.c.o
>>>>>>>> gnucash/report/report-gnome/gnc-plugin-page-report.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPageReportPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-account-tree.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginAccountTreePrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-budget-view.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/search-owner.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-invoice.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-basic-commands.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-account-tree.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register2.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-budget.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-sx-list.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-budget.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-owner-tree.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-business.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-page-register.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-register2.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/gnc-plugin-account-tree.c.o
>>>>>>>> gnucash/gnome/gnc-plugin-register2.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginRegister2Private));
>>>>>>>> gnucash/gnome/gnc-plugin-page-budget.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPageBudgetPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-register.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginRegisterPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-page-register.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
>>>>>>>> gnucash/gnome/search-owner.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GNCSearchOwnerPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-business.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginBusinessPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-page-register2.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginPageRegister2Private));
>>>>>>>> gnucash/gnome/gnc-plugin-page-sx-list.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPageSxListPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-page-invoice.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPageInvoicePrivate));
>>>>>>>> gnucash/gnome/gnc-budget-view.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GncBudgetViewPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-page-owner-tree.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginPageOwnerTreePrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-page-account-tree.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginPageAccountTreePrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-budget.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginBudgetPrivate));
>>>>>>>> gnucash/gnome/gnc-plugin-basic-commands.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginBasicCommandsPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-owner.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewOwnerPrivate));
>>>>>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GNCSearchParamPrivate));
>>>>>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GNCSearchParamSimplePrivate));
>>>>>>>> gnucash/gnome-utils/search-param.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GNCSearchParamCompoundPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-selection.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelSelectionPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-owner.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelOwnerPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-plugin.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-price.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPricePrivate));
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-owner.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-account-types.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-currency-edit.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-main-window.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-commodity.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-date-format.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-price.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-period-select.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-page.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-owner.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-file-history.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-commodity.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-combott.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-model-price.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/search-param.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-menu-additions.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-plugin-manager.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-query-view.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-embedded-window.c.o
>>>>>>>> Übereinstimmungen in Binärdatei
>>>>>>>> gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-account.c.o
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-account.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelAccountPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-commodity.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelCommodityPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-split-reg.c:
>>>>>>>> g_type_class_add_private (klass, sizeof(GncTreeViewSplitRegPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-price.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPricePrivate));
>>>>>>>> gnucash/gnome-utils/gnc-query-view.c:    g_type_class_add_private
>>>>>>>> (klass, sizeof(GNCQueryViewPriv));
>>>>>>>> gnucash/gnome-utils/gnc-period-select.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPeriodSelectPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model-account-types.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncTreeModelAccountTypesPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-plugin-file-history.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginFileHistoryPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-combott.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(GncCombottPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-currency-edit.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCCurrencyEditPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-commodity.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewCommodityPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-plugin-manager.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginManagerPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-plugin-menu-additions.c:
>>>>>>>> g_type_class_add_private(klass,
>>>>>>>> sizeof(GncPluginMenuAdditionsPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-account.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-plugin-page.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view-sx-list.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewSxListPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-embedded-window.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncEmbeddedWindowPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-tree-model.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeModelPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-date-format.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GNCDateFormatPriv));
>>>>>>>> gnucash/gnome-utils/gnc-tree-view.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncTreeViewPrivate));
>>>>>>>> gnucash/gnome-utils/gnc-main-window.c:
>>>>>>>> g_type_class_add_private(klass, sizeof(GncMainWindowPrivate));
>>>>>>>> Übereinstimmungen in Binärdatei lib64/libgnc-gnome.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-search.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-engine.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-qif-import.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-log-replay.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-report-gnome.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-import.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-ofx.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-stylesheets.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-csv-export.so
>>>>>>>> Übereinstimmungen in Binärdatei lib64/gnucash/libgncmod-gnome-utils.so
>>>>>>>> libgnucash/engine/gnc-lot.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(LotPrivate));
>>>>>>>> libgnucash/engine/Account.cpp:    g_type_class_add_private(klass,
>>>>>>>> sizeof(AccountPrivate));
>>>>>>>> libgnucash/engine/gnc-commodity.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(CommodityPrivate));
>>>>>>>> libgnucash/engine/gnc-budget.c:    g_type_class_add_private(klass,
>>>>>>>> sizeof(BudgetPrivate));
>>>>>>>> libgnucash/engine/qofinstance.cpp:    g_type_class_add_private(klass,
>>>>>>>> sizeof(QofInstancePrivate));
>>>>>>>> grep: share/doc/gnucash/COPYING: Datei oder Verzeichnis nicht gefunden
>>>>>>>> Looks like a need to change ?
>>>>>>>> regards,
>>>>>>>> Christoph
>>>>>>>> _______________________________________________
>>>>>>>> gnucash-devel mailing list
>>>>>>>> [hidden email]
>>>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>>>> _______________________________________________
>>>>>>> gnucash-devel mailing list
>>>>>>> [hidden email]
>>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>> _______________________________________________
>>> gnucash-devel mailing list
>>> [hidden email]
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>> _______________________________________________
>> gnucash-devel mailing list
>> [hidden email]
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel