Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should be runtime check? #639

Closed
elextr opened this issue Sep 1, 2015 · 10 comments
Closed

Should be runtime check? #639

elextr opened this issue Sep 1, 2015 · 10 comments

Comments

@elextr
Copy link
Member

elextr commented Sep 1, 2015

Shouldn't this be a runtime check, the need for the call depends on the version of glib being used, not the version being compiled against.

Wonder if there are any more like that?

Ahh FIF only finds this

@codebrainz
Copy link
Member

I think the guards are just to stifle the compile-time deprecation warning, I don't think there's any harm in actually calling them, they just don't do anything any more, IIUC.

@elextr
Copy link
Member Author

elextr commented Sep 2, 2015

Yeah, but if its compiled against a new version the call is removed, but if its then run against an older version it will fail AFAICT.

@codebrainz
Copy link
Member

Would have to check which version it was removed deprecated and whether we even support it anymore.

@elextr
Copy link
Member Author

elextr commented Sep 2, 2015

The test is right for deprecation, but we support back to 2.28. So if Geany is compiled against a glib newer than 2.36 it won't run on a version older than 2.36.

@codebrainz
Copy link
Member

My guess is that nobody downgrades their glib, so someone who compiles it themselves or gets it from their distro package manager, or uses the win32 or OSX binaries (which embed fixed glib version), would never notice this bug.

@elextr
Copy link
Member Author

elextr commented Sep 2, 2015

Yeah, thats probably why there have been no bug reports, but its still wrong :)

@codebrainz
Copy link
Member

When you change it to use the runtime check, you might need to do some tricks to avoid adding (yet another) "deprecated" warning at compile time. I think the gtk2 branch build is still "deprecated" warning-free :)

@b4n
Copy link
Member

b4n commented Sep 2, 2015

Hum… will the linker even accept the older version? It could in theory with this check alone, but I'm not sure it will with the rest of the GLib. Anyway, OK, if you want to change those go ahead, they do seem slightly dubious as you say, although I doubt anyone will actually suffer from them.

@xiota
Copy link
Contributor

xiota commented Oct 26, 2021

The links into the source don't seem to point where they're supposed to. Is it still relevant now that Geany has officially moved to GTK3?

@elextr
Copy link
Member Author

elextr commented Oct 26, 2021

This has probably been overtaken by the passage of time and 30+ glib versions, closing.

@elextr elextr closed this as completed Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants