Merge lp:~mc-return/nux/nux.merge-fix-deprecated-warnings into lp:nux
| Status: | Work in progress | ||||
|---|---|---|---|---|---|
| Proposed branch: | lp:~mc-return/nux/nux.merge-fix-deprecated-warnings | ||||
| Merge into: | lp:nux | ||||
| Diff against target: |
26 lines (+2/-7) 1 file modified
Nux/MainLoopGLib.cpp (+2/-7) |
||||
| To merge this branch: | bzr merge lp:~mc-return/nux/nux.merge-fix-deprecated-warnings | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Unity Team | 2012-09-02 | Pending | |
|
Review via email:
|
|||
Commit Message
Fixed [-Wdeprecated-
Description of the Change
Fixes [-Wdeprecated-
| Martin Pitt (pitti) wrote : | # |
| MC Return (mc-return) wrote : | # |
> Looks good to me. However, g_type_init() does not have the same semantics as
> g_thread_
> to drop the "static bool gthread_
Done in r656.
> Does your
> configure.ac ensure you require at least glib 2.24 for this?
Yep. configure.ac says:
glib-2.0 >= 2.25.14
Unmerged revisions
- 656. By MC Return on 2012-09-04
-
Removed the static bool gthread_initialized
- 655. By MC Return on 2012-09-02
-
Fixed indentation
- 654. By MC Return on 2012-09-02
-
Hopefully fixed deprecated g_source_
get_current_ time correctly this time - 653. By MC Return on 2012-09-02
-
Hopefully fixed g_source_get_time
- 652. By MC Return on 2012-09-02
-
Fixed [-Wdeprecated-
declarations] warnings in MainLoopGLib.cpp and replaced 'void g_source_ get_current_ time(GSource* , GTimeVal*)' with 'void g_source_ get_time( GSource* , GTimeVal*)' and 'g_thread_init (NULL);' with 'g_type_init();'

Looks good to me. However, g_type_init() does not have the same semantics as g_thread_ init(NULL) , you *always* have to call it exactly once. So I suggest to drop the "static bool gthread_ initialized" bit as well. Does your configure.ac ensure you require at least glib 2.24 for this?