Skip to content

pio_nc4.c:1341:47: error: macro "PLOG" passed 4 arguments, but takes just 1 #1987

@j34ni

Description

@j34ni

Hi,

I am getting these errors with CESM 2.3 (alpha 17a) and pio2.6.2 when compiling in debug mode with GNU and MPIch:

/scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c: In function 'PIOc_def_var_filter':
/scratch//cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c:1340:9: error: 'i' undeclared (first use in this function); did you mean 'id'?
 1340 |     for(i=0; i<nparams; i++)
      |         ^
      |         id
/scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c:1340:9: note: each undeclared identifier is reported only once for each function it appears in
/scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c:1341:47: error: macro "PLOG" passed 4 arguments, but takes just 1
 1341 |         PLOG(1, "  param %d %d\n",i, params[i]);
      |                                               ^
In file included from /scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c:8:
**/scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_internal.h:97: note: macro "PLOG" defined here
   **97 | #define PLOG(e) pio_log e****
      |
/scratch/cesm2_3_alpha17a/libraries/parallelio/src/clib/pio_nc4.c:1341:9: error: 'PLOG' undeclared (first use in this function)
 1341 |         PLOG(1, "  param %d %d\n",i, params[i]);

Is it normal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions