ULTIMA: Fix some unused variable warnings

This commit is contained in:
Matthew Duggan 2022-01-02 16:41:04 +09:00
parent 5892b8c05d
commit cf859e68f9
4 changed files with 14 additions and 12 deletions

View File

@ -257,10 +257,10 @@ Obj *ContainerWidget::get_obj_at_location(int x, int y) {
}
// change container, ready/unready object, activate arrows
GUI_status ContainerWidget::MouseUp(int x, int y, Shared::MouseButton button) {
GUI_status ContainerWidget::MouseUp(int /*x*/, int /*y*/, Shared::MouseButton button) {
if (button == USE_BUTTON) {
x -= area.left;
y -= area.top;
//x -= area.left;
//y -= area.top;
if (selected_obj) {
// only act now if objects can't be used with DoubleClick
@ -421,12 +421,12 @@ bool ContainerWidget::drag_accept_drop(int x, int y, int message, void *data) {
return false;
}
void ContainerWidget::drag_perform_drop(int x, int y, int message, void *data) {
void ContainerWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) {
DEBUG(0, LEVEL_DEBUGGING, "ContainerWidget::drag_perform_drop()\n");
Obj *obj;
x -= area.left;
y -= area.top;
//x -= area.left;
//y -= area.top;
if (message == GUI_DRAG_OBJ) {
DEBUG(0, LEVEL_DEBUGGING, "Drop into inventory.\n");

View File

@ -476,12 +476,12 @@ bool DollWidget::drag_accept_drop(int x, int y, int message, void *data) {
return false;
}
void DollWidget::drag_perform_drop(int x, int y, int message, void *data) {
void DollWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) {
DEBUG(0, LEVEL_DEBUGGING, "DollWidget::drag_perform_drop()\n");
Obj *obj;
x -= area.left;
y -= area.top;
//x -= area.left;
//y -= area.top;
if (message == GUI_DRAG_OBJ) {
DEBUG(0, LEVEL_DEBUGGING, "Ready item.\n");

View File

@ -562,12 +562,12 @@ bool InventoryWidget::drag_accept_drop(int x, int y, int message, void *data) {
return false;
}
void InventoryWidget::drag_perform_drop(int x, int y, int message, void *data) {
void InventoryWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) {
DEBUG(0, LEVEL_DEBUGGING, "InventoryWidget::drag_perform_drop()\n");
Obj *obj;
x -= area.left;
y -= area.top;
//x -= area.left;
//y -= area.top;
if (message == GUI_DRAG_OBJ) {
DEBUG(0, LEVEL_DEBUGGING, "Drop into inventory.\n");

View File

@ -117,6 +117,8 @@ bool MapLoader::loadData(Map *map, Common::SeekableReadStream &f) {
}
}
debug(10, "MapLoader::loadData translation took %d ms", total);
return true;
}