Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Remove pre-init assertion to check for non-debug GTK builds #822

Merged
merged 1 commit into from
Jun 6, 2019
Merged

Remove pre-init assertion to check for non-debug GTK builds #822

merged 1 commit into from
Jun 6, 2019

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Jun 6, 2019

While previously checking for this could be used to determine if GTK was
built with assertions enabled or not, this is not true anymore with
later versions of GTK. There is no way to know if assertions were
disabled or not at runtime.

While disabling assertions easily causes memory unsafety in GTK code,
it is nothing that can be disabled accidentally. Users deploying and
running such code will have to live with the consequences.

Fixes #821

While previously checking for this could be used to determine if GTK was
built with assertions enabled or not, this is not true anymore with
later versions of GTK. There is no way to know if assertions were
disabled or not at runtime.

While disabling assertions easily causes memory unsafety in GTK code,
it is nothing that can be disabled accidentally. Users deploying and
running such code will have to live with the consequences.

Fixes #821
@sdroege sdroege mentioned this pull request Jun 6, 2019
10 tasks
@GuillaumeGomez
Copy link
Member

👍

@sdroege
Copy link
Member Author

sdroege commented Jun 6, 2019

@GuillaumeGomez All green except for the well-known Windows failure :)

@GuillaumeGomez
Copy link
Member

Waiting for @EPashkin approval before.

@EPashkin
Copy link
Member

EPashkin commented Jun 6, 2019

@sdroege Thanks 👍

@GuillaumeGomez
Copy link
Member

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 5908ecf into gtk-rs:master Jun 6, 2019
alex179ohm pushed a commit to alex179ohm/gtk that referenced this pull request Oct 21, 2019
Use dox instead of creating new feature
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - 'libgtk-3 was configured with --enable-debug=no
3 participants