sandbox/bugs/pointpoint.c

    No warning for Point point

    There should be a warning or even an error according to /src/NEWS.

    This is actually OK. The error will occur only if one tries to access fields, coordinates etc. after this call.

    int main()
    {
      init_grid (1);
    unused variable ‘point’ [-Wunused-variable]
      Point point = locate (0);
    ‘x’ undeclared (first use in this function)
      double a = x;
    }