Core/Trade: Fix warnings