]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Don't write declaration of extern symbols with given header 70c4b16d83c90959e806cc055fb0dd65bef0cab3 65/head
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Jun 2019 21:34:09 +0000 (23:34 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 4 Jul 2019 10:18:11 +0000 (12:18 +0200)
commit70c4b16d83c90959e806cc055fb0dd65bef0cab3
tree96ae54a6a8ff37201aefcb0f5147f3e92f7a882f
parentb35b0b1a673e498fbb065a6fb7b68bc714142826
codegen: Don't write declaration of extern symbols with given header

The corresponding header will provide the declaration and therefore fix
build with -Werror=redundant-decls.

Set cheader_filename for implicit to_string() method of enums which is
transformed into symbol calls from glib-object.h. This avoids the leak of
an superfluous prototype of that method into the generated c code.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/745
codegen/valaccodeattribute.vala
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/methods/extern.vala [new file with mode: 0644]
vala/valaenumvaluetype.vala