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

Fixes #9

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Fixes #9

wants to merge 10 commits into from

Conversation

atsampson
Copy link
Contributor

A bunch of minor fixes, mostly clearing up compiler warnings.

The g_basename removal change is the biggest one here. I don't think there's anything especially complex in there but it touches quite a bit of the code.

The latter is deprecated since glib 2.2, so this clears up a lot of
deprecation warnings.
clang -Wall complains that type_to_icon is using abs on a time_t. It
suggests using labs instead, but that'll cause the same problem on
machines with 64-bit time_t. Use fabs and a cast to double instead.
clang -Wall otherwise complains about the function not being used.
The latter is deprecated, so this fixes a warning. Despite the Xkb
prefix the former is in libX11, which we already link with.

Johaan Strojandogg suggested (and tested) this change in 2012, although
I don't think he ever submitted it:
http://www.linuxquestions.org/questions/programming-9/warning-'xkeycodetokeysym'-is-deprecated-how-do-i-switch-to-xkbkeycodetokeysym-4175442778/
clang -Wall (correctly) complains that we shouldn't be using values in
an enum type that haven't been defined. The other enums in global.h
already have UNKNOWN values.
These were added elsewhere but not here.
"Benutzter" (used) for "Benutzer" (user).
@atsampson
Copy link
Contributor Author

Rebased to remove the -fcommon fix, since the same change was applied in #15.

I've been using rox-filer with these patches heavily since 2016, and haven't run into any further problems, so I'm pretty confident they're OK now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant