| commit | af5ebffb9462fd6fab9d9d8e230af76bc5c122c6 | [log] [tgz] |
|---|---|---|
| author | Ben Chan <[email protected]> | Thu Feb 02 20:16:09 2017 |
| committer | chrome-bot <[email protected]> | Fri Feb 03 13:15:11 2017 |
| tree | 25fa9f1d0a69a971507377e0da1b5e4155fae855 | |
| parent | 1042f3a10c567abf95b6f2b8c97bb60eadf49399 [diff] |
mtpd: guard invocation of g_type_init() g_type_init() has been deprecated (and also marked with the attribute 'deprecated') since glib 2.36 as the glib type system is now automatically initialized. This CL guards the invocation of g_type_init() with the glib version check marco. BUG=chromium:680616 TEST=Ran mtpd unit tests. TEST=Verified that mtpd worked with glib 2.34 and 2.36. Change-Id: I3344acf323396fd06065846f746d30c42e6cf451 Reviewed-on: https://chromium-review.googlesource.com/436484 Commit-Ready: Ben Chan <[email protected]> Tested-by: Ben Chan <[email protected]> Reviewed-by: Mike Frysinger <[email protected]>