[augeas-devel] Warnings as error flag

Francis Giraldeau francis.giraldeau at usherbrooke.ca
Tue Aug 17 14:53:14 UTC 2010


Hi, 

I tried to compile with the autogen option
--enable-compile-warnings=error and I got an error: 

[...]
  CC     lens.lo
cc1: warnings being treated as errors
lens.c: In function ‘rtn_dot’:
lens.c:1324: error: unused parameter ‘stage’

But, here is the excerpt code from lens.c from master branch: 

[...]
static void rtn_dot(struct rtn *rtn, const char *stage) {
    FILE *fp;
    int r = 0;

    fp = debug_fopen("rtn_%s_%s.dot", stage,
lens_type_names[rtn->lens_type]);
[...]

The variable "stage" is read in debug_fopen, so it's used. I don't get
the point, does somebody have an idea? 

Cheer, 

Francis




More information about the augeas-devel mailing list