Skip to content

Commit

Permalink
Silence unused variable warning
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Heitzmann Gabrielli <[email protected]>
  • Loading branch information
heitzmann committed Oct 17, 2023
1 parent dbc9526 commit d9c5837
Showing 1 changed file with 35 additions and 37 deletions.
72 changes: 35 additions & 37 deletions src/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,43 +1423,41 @@ Library read_oas(const char* filename, double unit, double tolerance, ErrorCode*
// Elements
Cell* cell = NULL;

#ifndef NDEBUG
const char* oasis_record_names[] = {"PAD",
"START",
"END",
"CELLNAME_IMPLICIT",
"CELLNAME",
"TEXTSTRING_IMPLICIT",
"TEXTSTRING",
"PROPNAME_IMPLICIT",
"PROPNAME",
"PROPSTRING_IMPLICIT",
"PROPSTRING",
"LAYERNAME_DATA",
"LAYERNAME_TEXT",
"CELL_REF_NUM",
"CELL",
"XYABSOLUTE",
"XYRELATIVE",
"PLACEMENT",
"PLACEMENT_TRANSFORM",
"TEXT",
"RECTANGLE",
"POLYGON",
"PATH",
"TRAPEZOID_AB",
"TRAPEZOID_A",
"TRAPEZOID_B",
"CTRAPEZOID",
"CIRCLE",
"PROPERTY",
"LAST_PROPERTY",
"XNAME_IMPLICIT",
"XNAME",
"XELEMENT",
"XGEOMETRY",
"CBLOCK"};
#endif
// const char* oasis_record_names[] = {"PAD",
// "START",
// "END",
// "CELLNAME_IMPLICIT",
// "CELLNAME",
// "TEXTSTRING_IMPLICIT",
// "TEXTSTRING",
// "PROPNAME_IMPLICIT",
// "PROPNAME",
// "PROPSTRING_IMPLICIT",
// "PROPSTRING",
// "LAYERNAME_DATA",
// "LAYERNAME_TEXT",
// "CELL_REF_NUM",
// "CELL",
// "XYABSOLUTE",
// "XYRELATIVE",
// "PLACEMENT",
// "PLACEMENT_TRANSFORM",
// "TEXT",
// "RECTANGLE",
// "POLYGON",
// "PATH",
// "TRAPEZOID_AB",
// "TRAPEZOID_A",
// "TRAPEZOID_B",
// "CTRAPEZOID",
// "CIRCLE",
// "PROPERTY",
// "LAST_PROPERTY",
// "XNAME_IMPLICIT",
// "XNAME",
// "XELEMENT",
// "XGEOMETRY",
// "CBLOCK"};

OasisRecord record;
while ((error_code == NULL || *error_code == ErrorCode::NoError) &&
Expand Down

0 comments on commit d9c5837

Please sign in to comment.