Summary: | Telepathy-glib fails to compile with sun studio c | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Daniel Vergien <daniel.vergien> |
Component: | tp-glib | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | 0.12 | ||
Hardware: | Other | ||
OS: | Solaris | ||
URL: | http://git.collabora.co.uk/?p=user/smcv/telepathy-glib-smcv.git;a=shortlog;h=refs/heads/012-pedantic | ||
Whiteboard: | r+ | ||
i915 platform: | i915 features: |
Description
Daniel Vergien
2010-10-06 01:47:55 UTC
(In reply to comment #0) > "channel-manager.c", line 616: void function cannot return value > cc: acomp failed for channel-manager.c Fixed in a branch and awaiting code review for the next 0.12.x release, along with some other low-hanging "gcc -std=c99 -pedantic" warnings. I was curious about whether we could detect this automatically, so I tried compiling telepathy-glib with "gcc -Werror -std=c99 -pedantic". It seems we also rely on the following common extensions: - passing a function pointer where a void* is expected or vice versa (GLib and GIO rely heavily on this working, so there's nothing we can do about that) - variadic macros that don't have any arguments corresponding to the "..." - passing a Something* to a printf-style function that expects a void* Changing any of these would make our code much less readable, so I don't propose to change any of them; you may need to give your compiler a suitable flag to make it allow them. ++ Fixed in git for versions 0.13.2 and 0.12.1. |
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.