directfb2 / DFBTerm

DirectFB Terminal Emulator
GNU General Public License v2.0
4 stars 1 forks source link

fix -Wunused-result warnings #8

Closed stefan11111 closed 3 months ago

stefan11111 commented 3 months ago

Add (void)! casts to suppress -Wunused-result warnings. Is this what is desired, or should I add some checking? for example:

if (seteuid (pwent->pw_uid) < 0) {
    fprintf(stderr, "Could not seteuid\n"):
    exit(1);
}
caramelli commented 3 months ago

libzvt comes from https://download.gnome.org/sources/libzvt/2.0/libzvt-2.0.1.tar.gz and it's good if we can minimize changes in this external code. Your proposal with (void)! is concise, I like it!