Bug 1606284 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  z:/build/build/src/comm/mailnews/addrbook/src/nsAddrDatabase.cpp(763,31): error: function declared 'stdcall' here was previously declared without calling convention
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  NS_IMETHODIMP nsAddrDatabase::InitCardFromRow(nsIAbCard *newCard,
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -                                ^
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  z:/build/build/src/comm/mailnews/addrbook/src/nsAddrDatabase.h(79,12): note: previous declaration is here
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -    nsresult InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow *aCardRow);
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -             ^
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -  1 error generated.

Looks like you need to remove `nsresult InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow *aCardRow);` from the include file.
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  z:/build/build/src/comm/mailnews/addrbook/src/nsAddrDatabase.cpp(763,31): error: function declared 'stdcall' here was previously declared without calling convention
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  NS_IMETHODIMP nsAddrDatabase::InitCardFromRow(nsIAbCard *newCard,
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -                                ^
[task 2019-12-31T12:24:24.534Z] 12:24:24     INFO -  z:/build/build/src/comm/mailnews/addrbook/src/nsAddrDatabase.h(79,12): note: previous declaration is here
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -    nsresult InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow *aCardRow);
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -             ^
[task 2019-12-31T12:24:24.535Z] 12:24:24     INFO -  1 error generated.

Looks like you need to remove `nsresult InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow *aCardRow);` from the include file.

EDIT: No, the other way around, fix the type in the C++ file.

Back to Bug 1606284 Comment 7