URL:
<http://savannah.gnu.org/bugs/?37483>
Summary: APPEND_DUR macro yields conditional operator with
inconsistent types
Project: Denemo
Submitted by: None
Submitted on: Mon 01 Oct 2012 11:08:31 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi,
While building your package using our research compiler infrastructure we
noticed that the condition operator resulting from expansion of APPEND_DUR of
src/exportlilypond.c does not typecheck:
The return type of g_string_append is GString*, but append_duration has return
type void. Yet the C standard requires that the second and third argument of
the conditional operator ?: are compatible pointer types (there are several
other cases, see 6.5.15 of the C Standard). Failing this, the compiler may
produce arbitrary code.
The best way to fix this is likely making append_duration return a GString*,
which is easily implemented by a simple return figure;
Best,
Michael ([email protected])
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37483>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel