Bug 1360321 - 5. Fix warnings in widget; r=snorp

* Fix warnings using putenv with string literals.

* Fix a pritnf format warning.

MozReview-Commit-ID: B53sUjGTg7z
This commit is contained in:
Jim Chen
2017-05-17 13:06:23 -04:00
parent f3833a6a8b
commit 4c86aa0cfd
2 changed files with 3 additions and 3 deletions

View File

@@ -1432,8 +1432,8 @@ nsWindow::LogWindow(nsWindow *win, int index, int indent)
#if defined(DEBUG) || defined(FORCE_ALOG)
char spaces[] = " ";
spaces[indent < 20 ? indent : 20] = 0;
ALOG("%s [% 2d] 0x%08x [parent 0x%08x] [% 3d,% 3dx% 3d,% 3d] vis %d type %d",
spaces, index, (intptr_t)win, (intptr_t)win->mParent,
ALOG("%s [% 2d] 0x%p [parent 0x%p] [% 3d,% 3dx% 3d,% 3d] vis %d type %d",
spaces, index, win, win->mParent,
win->mBounds.x, win->mBounds.y,
win->mBounds.width, win->mBounds.height,
win->mIsVisible, win->mWindowType);