| Summary: |
[PATCH] Fix -Werror build for clang |
| Product: |
Telepathy
|
Reporter: |
Ting-Wei Lan <lantw44> |
| Component: |
mission-control | Assignee: |
Telepathy bugs list <telepathy-bugs> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
Telepathy bugs list <telepathy-bugs> |
| Severity: |
normal
|
|
|
| Priority: |
medium
|
CC: |
lantw44
|
| Version: |
unspecified | |
|
| Hardware: |
Other | |
|
| OS: |
FreeBSD | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
| Attachments: |
Don't initialize function pointers with G_TYPE_INVALID
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Please see the attached patch. It fixes the following error: mcd-account.c:101:7: error: expression which evaluates to zero treated as a null pointer constant of type 'GType (*)(void)' [-Werror,-Wnon-literal-null-conversion] { G_TYPE_INVALID, } ^~~~~~~~~~~~~~ /home/lantw44/gnome/devinstall/include/glib-2.0/gobject/gtype.h:55:26: note: expanded from macro 'G_TYPE_INVALID' #define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/lantw44/gnome/devinstall/include/glib-2.0/gobject/gtype.h:219:36: note: expanded from macro 'G_TYPE_MAKE_FUNDAMENTAL' #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.