complie error in current trunk

Geert Janssens janssens-geert at telenet.be
Thu Dec 20 11:00:56 EST 2012


Hi Herbert,

This may be a side effect of my efforts to make GnuCash build and run 
with guile 2. I'm not sure why I didn't get these warnings on my system.

Anyway, just to test, can you alter src/base-typemaps.i as follows:
on line 19, there is
%typemap (out) char * {

Can you just below this line insert this:
   $result = SCM_UNSPECIFIED;

And then compile again ?

Geert

On 20-12-12 12:06, Herbert Thoma wrote:
> Hi!
>
> I get the following errors:
> (If I run configure with --disable-error-on-warning the build
> completes successfully.)
>
> cc1: warnings being treated as errors
> swig-unittest-support-guile.c: In function ‘_wrap_TestErrorStruct_log_domain_get’:
> swig-unittest-support-guile.c:1367:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-unittest-support-guile.c: In function ‘_wrap_TestErrorStruct_msg_get’:
> swig-unittest-support-guile.c:1430:7: error: ‘gswig_result’ may be used uninitialized in this function
> make[3]: *** [libtest_core_guile_la-swig-unittest-support-guile.lo] Fehler 1
> make[3]: Leaving directory `/home/tma/gnucash/gnucash_cvs/gnucash_work/src/test-core'
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Leaving directory `/home/tma/gnucash/gnucash_cvs/gnucash_work/src'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory `/home/tma/gnucash/gnucash_cvs/gnucash_work'
> make: *** [all] Fehler 2
>
>
> cc1: warnings being treated as errors
> swig-engine.c: In function ‘_wrap_gncTaxIncludedTypeToString’:
> swig-engine.c:32596:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAmountTypeToString’:
> swig-engine.c:32541:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEntryPaymentTypeToString’:
> swig-engine.c:25533:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEntryDiscountHowToString’:
> swig-engine.c:25478:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_num_dbg_to_string’:
> swig-engine.c:17125:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_numeric_to_string’:
> swig-engine.c:17099:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_numeric_errorCode_to_string’:
> swig-engine.c:17016:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_print_date’:
> swig-engine.c:13247:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetTypeStr’:
> swig-engine.c:6643:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountTypeEnumAsString’:
> swig-engine.c:6563:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_get_account_separator_string’:
> swig-engine.c:4333:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_build_book_path’:
> swig-engine.c:17726:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_hook_create’:
> swig-engine.c:20874:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetMemo’:
> swig-engine.c:2313:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetAction’:
> swig-engine.c:2368:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetType’:
> swig-engine.c:2888:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetCorrAccountFullName’:
> swig-engine.c:3104:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetCorrAccountName’:
> swig-engine.c:3132:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccSplitGetCorrAccountCode’:
> swig-engine.c:3160:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_account_name_violations_errmsg’:
> swig-engine.c:4477:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetName’:
> swig-engine.c:5030:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetCode’:
> swig-engine.c:5058:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetDescription’:
> swig-engine.c:5086:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetColor’:
> swig-engine.c:5114:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetFilter’:
> swig-engine.c:5142:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetSortOrder’:
> swig-engine.c:5170:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetNotes’:
> swig-engine.c:5198:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetLastNum’:
> swig-engine.c:5226:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_account_get_full_name’:
> swig-engine.c:5319:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_dxaccAccountGetPriceSrc’:
> swig-engine.c:5375:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetTaxUSCode’:
> swig-engine.c:7489:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccAccountGetTaxUSPayerNameSource’:
> swig-engine.c:7544:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_dxaccAccountGetQuoteTZ’:
> swig-engine.c:8000:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccTransGetNum’:
> swig-engine.c:8847:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccTransGetDescription’:
> swig-engine.c:8875:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccTransGetNotes’:
> swig-engine.c:8903:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccTransGetReadOnly’:
> swig-engine.c:9132:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_xaccTransGetVoidReason’:
> swig-engine.c:10080:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_lot_get_title’:
> swig-engine.c:10908:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_lot_get_notes’:
> swig-engine.c:10936:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_price_get_source’:
> swig-engine.c:12021:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_price_get_typestr’:
> swig-engine.c:12049:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_qof_session_get_url’:
> swig-engine.c:13199:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_qof_query_core_to_string’:
> swig-engine.c:16225:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_budget_get_name’:
> swig-engine.c:17962:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_budget_get_description’:
> swig-engine.c:18017:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_quote_source_get_user_name’:
> swig-engine.c:18881:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_quote_source_get_internal_name’:
> swig-engine.c:18909:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_mnemonic’:
> swig-engine.c:19065:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_namespace’:
> swig-engine.c:19093:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_namespace_compat’:
> swig-engine.c:19121:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_fullname’:
> swig-engine.c:19172:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_printname’:
> swig-engine.c:19200:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_cusip’:
> swig-engine.c:19228:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_unique_name’:
> swig-engine.c:19256:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_get_quote_tz’:
> swig-engine.c:19374:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gnc_commodity_namespace_get_name’:
> swig-engine.c:20076:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetName’:
> swig-engine.c:21929:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetAddr1’:
> swig-engine.c:21957:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetAddr2’:
> swig-engine.c:21985:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetAddr3’:
> swig-engine.c:22013:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetAddr4’:
> swig-engine.c:22041:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetPhone’:
> swig-engine.c:22069:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetFax’:
> swig-engine.c:22097:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncAddressGetEmail’:
> swig-engine.c:22125:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncBillTermGetName’:
> swig-engine.c:22944:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncBillTermGetDescription’:
> swig-engine.c:22972:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncCustomerGetID’:
> swig-engine.c:23854:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncCustomerGetName’:
> swig-engine.c:23882:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncCustomerGetNotes’:
> swig-engine.c:23956:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEmployeeGetID’:
> swig-engine.c:24886:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEmployeeGetUsername’:
> swig-engine.c:24914:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEmployeeGetName’:
> swig-engine.c:24942:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEmployeeGetLanguage’:
> swig-engine.c:24993:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEmployeeGetAcl’:
> swig-engine.c:25021:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEntryGetDescription’:
> swig-engine.c:26322:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEntryGetAction’:
> swig-engine.c:26350:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncEntryGetNotes’:
> swig-engine.c:26378:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_qofEntryGetInvDiscType’:
> swig-engine.c:26561:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_qofEntryGetInvDiscHow’:
> swig-engine.c:26589:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncInvoiceGetID’:
> swig-engine.c:28378:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncInvoiceGetBillingID’:
> swig-engine.c:28515:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncInvoiceGetNotes’:
> swig-engine.c:28543:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncInvoiceGetTypeString’:
> swig-engine.c:28639:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncJobGetID’:
> swig-engine.c:29946:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncJobGetName’:
> swig-engine.c:29974:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncJobGetReference’:
> swig-engine.c:30002:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncOrderGetID’:
> swig-engine.c:30546:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncOrderGetNotes’:
> swig-engine.c:30639:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncOrderGetReference’:
> swig-engine.c:30667:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncOwnerGetID’:
> swig-engine.c:31485:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncOwnerGetName’:
> swig-engine.c:31513:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncTaxTableGetName’:
> swig-engine.c:33086:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncVendorGetID’:
> swig-engine.c:34040:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncVendorGetName’:
> swig-engine.c:34068:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-engine.c: In function ‘_wrap_gncVendorGetNotes’:
> swig-engine.c:34119:7: error: ‘gswig_result’ may be used uninitialized in this function
> make[5]: *** [swig-engine.lo] Fehler 1
>
>
> cc1: warnings being treated as errors
> swig-app-utils-guile.c: In function ‘_wrap_printable_value’:
> swig-app-utils-guile.c:1720:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-app-utils-guile.c: In function ‘_wrap_number_to_words’:
> swig-app-utils-guile.c:1691:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-app-utils-guile.c: In function ‘_wrap_xaccPrintAmount’:
> swig-app-utils-guile.c:1664:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-app-utils-guile.c: In function ‘_wrap_gnc_get_current_book_tax_type’:
> swig-app-utils-guile.c:1322:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-app-utils-guile.c: In function ‘_wrap_gnc_get_current_book_tax_name’:
> swig-app-utils-guile.c:1299:7: error: ‘gswig_result’ may be used uninitialized in this function
> swig-app-utils-guile.c: In function ‘_wrap_gnc_gettext_helper’:
> swig-app-utils-guile.c:1365:7: error: ‘gswig_result’ may be used uninitialized in this function
> make[4]: *** [swig-app-utils-guile.lo] Fehler 1
>
>
>
> openSUSE 11.4 (x86_64)
> SWIG Version 1.3.40
> Guile 1.8.7
> gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]
>
>   Herbert.
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list