manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
135 stars 19 forks source link

Fix mismatches between prototypes and definitions #48

Closed jamesjer closed 3 years ago

jamesjer commented 3 years ago

The Fedora project is building all packages with link-time optimization (LTO) for Fedora 33 and later. While building bigloo with LTO, gcc emitted a number of warnings about mismatched declarations and definitions. This patch fixes most of them. There are a couple more, but I have reason to suspect that you won't like my solutions for those, so they will be separate pull requests. The reasons for each change:

Let me know if you would like any changes.

jamesjer commented 3 years ago

I changed my mind on uv-handle-type-symbol / bgl_uv_handle_type_symbol. The parameter is really an enum, which means it is implemented as an int, so I changed the two uses of long to int instead.