diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-28 16:40:09 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-08-07 16:50:35 +0200 |
commit | 1e2f9219883452ef7da37c3c984b3e3d2939656b (patch) | |
tree | d1414af1325ab9f90e37305800e3a748d90ddf9d /dw/layout.cc | |
parent | 0220c850a043af46385d6cd6cf4ffa9ceb5696e3 (diff) |
Fix pedantic warnings
Reviewed-by: dogma
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index a6b77aaf..5b3000c0 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -504,8 +504,10 @@ void Layout::attachView (View *view) void Layout::detachView (View *view) { - if (this->view != view) - MSG_ERR("detachView: this->view: %p view %p\n", this->view, view); + if (this->view != view) { + MSG_ERR("detachView: this->view: %p view %p\n", + (void *) this->view, (void *) view); + } view->setLayout (NULL); platform->detachView (view); @@ -865,7 +867,7 @@ void Layout::resizeIdle () enterResizeIdle (); - static int calls = 0; + //static int calls = 0; // There are two commits, 2863:b749629fbfc9 and 4645:ab70f9ce4353, the second // reverting the former. Interrestingly, the second fixes a bug. However, it |