mirror of https://github.com/fltk/fltk
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:
parent
e7af621409
commit
090f325780
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue