Project

General

Profile

Bug #11003

Compiling error

Added by Paolo Astengo almost 4 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
General
Target version:
Start date:
04/24/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

I've got this error trying to compil DT:

/home/paolo/darktable/src/lut/pfm.c: In function ‘read_pfm’:
/home/paolo/darktable/src/lut/pfm.c:40:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, "%c%c d %d ", &magic0, &magic1, &width, &height);

/home/paolo/darktable/src/lut/pfm.c:41:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, " %63s ", scale_factor_string);
^
/home/paolo/darktable/src/lut/main.c: In function ‘parse_csv’:
/home/paolo/darktable/src/lut/main.c:1522:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, "%15[
;];%255[^\n]\n", key, value);

/home/paolo/darktable/src/lut/main.c:1532:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, "%15[
;];%255[^\n]\n", key, value);

/home/paolo/darktable/src/lut/main.c:1542:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, "%15[
;];%d\n", key, num_gray);

/home/paolo/darktable/src/lut/main.c:1552:3: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
fscanf(f, "
*[\n]\n");
^
cc1: all warnings being treated as errors

History

#1 Updated by Paolo Astengo almost 4 years ago

This bug has been partially solved by Johannes Hanika with changes on src/lut/main.c

It remains on lut/pfm.c

#2 Updated by Paolo Astengo almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

This bug seems to be fixed. Thank you

#3 Updated by Roman Lebedev over 3 years ago

  • Target version set to 2.2.0

Also available in: Atom PDF

Go to top