Opened 11 years ago

Closed 9 years ago

#2461 closed defect (fixed)

cunit tests cleanup unused variables, all warnings

Reported by: robe Owned by: pramsey
Priority: low Milestone: PostGIS 2.2.0
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

I know these aren't real issues, but the warnings are creating noise on my compiler output.

CAn we get rid of these unused variables.

cu_measures.c: In function 'test_lw_dist2d_pt_arc':
cu_measures.c:447:6: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
  int rv;
      ^
cu_measures.c: In function 'test_lw_dist2d_seg_arc':
cu_measures.c:507:6: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
  int rv;
      ^
cu_measures.c: In function 'test_lw_dist2d_arc_arc':
cu_measures.c:580:6: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
  int rv;
      ^
cu_measures.c: In function 'test_lw_dist2d_pt_ptarrayarc':
cu_measures.c:685:6: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
  int rv;
      ^
cu_measures.c: In function 'test_lw_dist2d_ptarray_ptarrayarc':
cu_measures.c:759:6: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
  int rv;

Change History (3)

comment:1 by robe, 11 years ago

Milestone: PostGIS 2.1.1PostGIS 2.2.0

comment:2 by pramsey, 9 years ago

Summary: cu_measures.c cleanup unused variablescunit tests cleanup unused variables, all warnings

comment:3 by pramsey, 9 years ago

Resolution: fixed
Status: newclosed

This seems done

Note: See TracTickets for help on using tickets.