Fix compiler warning [-Wunused-result].

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2017-08-05 09:55:22 +00:00
parent e7af621409
commit 090f325780

View File

@ -1280,9 +1280,9 @@ static bool gnome_scale_factor(float& factor) {
char line[400] = "";
FILE *in = fopen("/proc/version", "r");
if (in) {
fgets(line, sizeof(line), in);
char *s = fgets(line, sizeof(line), in);
fclose(in);
if (strstr(line, "Ubuntu")) ubuntu = true;
if (s && strstr(line, "Ubuntu")) ubuntu = true;
}
// define pters to used functions