Projekt

Allgemein

Profil

Aktionen

Bug #231

geschlossen

Inconsistent use of GWENHYFAR_CB causes build failures on Windows

Von jralls@ceridwen.us vor mehr als 4 Jahren hinzugefügt. Vor mehr als 4 Jahren aktualisiert.

Status:
Closed
Priorität:
Normal
Kategorie:
Gwenhywfar
Beginn:
11.02.2021
Abgabedatum:
Betriebssystem:
Windows
AqBanking-Version:
Gwenhywfar 5.5.0, current git master
Anwendung:
GnuCash
Version der Anwendung:

Beschreibung

The following example errors are repeated for _freeData, _messageBox, _inputBox, _showBox, _hideBox, _progressStart, _progressAdvance, _progressSetTotal, _progressLog, _progressEnd, _print, _getPassword, _setPasswordStatus, _logHook, _waitForSockets, _checkCert, _keyDataFromTextOpenSsl, _execDialog, _openDialog, _closeDialog, _runDialog, _readDialogPrefs, _writeDialogPrefs, _getFilename, and _getSyncio:

C:/gcdev64/gnucash/maint/src/gwenhywfar-5.5.0/src/gui/nogui.c:192:52: warning: passing argument 2 of 'GWEN_Gui_SetMessageBoxFn' from incompatible pointer type [-Wincompatible-pointer-types]
192 | xgui->messageBoxFn=GWEN_Gui_SetMessageBoxFn(gui, _messageBox); | ^~~~~~~~~ | | | int (attribute((stdcall)) *)(GWEN_GUI *, uint32_t, const char *, const char *, const char *, const char *, const char *, uint32_t) {aka int (attribute((stdcall)) *)(GWEN_GUI *, unsigned int, const char *, const char *, const char *, const char *, const char *, unsigned int)}

C:/gcdev64/gnucash/maint/src/gwenhywfar-5.5.0/src/gui/nogui.c:233:5: error: conflicting types for '_messageBox'
233 | int _messageBox(GWEN_UNUSED GWEN_GUI *gui, | ^~~~~~~~~
C:/gcdev64/gnucash/maint/src/gwenhywfar-5.5.0/src/gui/nogui.c:49:26: note: previous declaration of '_messageBox' was here
49 | static int GWENHYWFAR_CB _messageBox(GWEN_GUI *gui, | ^~~~~~~~~

C:/gcdev64/gnucash/maint/src/gwenhywfar-5.5.0/src/gui/nogui.c:49:26: warning: '_messageBox' used but never defined
49 | static int GWENHYWFAR_CB _messageBox(GWEN_GUI *gui, | ^~~~~~~~~


Dateien

0001-Consistently-use-GWENHYWFAR_CB-in-callback-decls-and.patch (19 KB) 0001-Consistently-use-GWENHYWFAR_CB-in-callback-decls-and.patch Patch to fix all GWENHYWFAR_CB build errors on Windows. jralls@ceridwen.us, 11.02.2021 22:05
Aktionen

Auch abrufbar als: Atom PDF