Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6d1fe6fe
Commit
6d1fe6fe
authored
May 16, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 2 minor warning compil (unused variables)
parent
9e7cbed8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
minkowski.hpp
include/boost/polygon/detail/minkowski.hpp
+6
-6
PolyLine.cpp
polygon/PolyLine.cpp
+0
-11
No files found.
include/boost/polygon/detail/minkowski.hpp
View file @
6d1fe6fe
...
@@ -24,13 +24,13 @@ struct minkowski_offset {
...
@@ -24,13 +24,13 @@ struct minkowski_offset {
static
void
convolve_two_point_sequences
(
polygon_set
&
result
,
itrT1
ab
,
itrT1
ae
,
itrT2
bb
,
itrT2
be
)
{
static
void
convolve_two_point_sequences
(
polygon_set
&
result
,
itrT1
ab
,
itrT1
ae
,
itrT2
bb
,
itrT2
be
)
{
if
(
ab
==
ae
||
bb
==
be
)
if
(
ab
==
ae
||
bb
==
be
)
return
;
return
;
point
first_a
=
*
ab
;
// point first_a = *ab; // seems unused
point
prev_a
=
*
ab
;
point
prev_a
=
*
ab
;
std
::
vector
<
point
>
vec
;
std
::
vector
<
point
>
vec
;
polygon
poly
;
polygon
poly
;
++
ab
;
++
ab
;
for
(
;
ab
!=
ae
;
++
ab
)
{
for
(
;
ab
!=
ae
;
++
ab
)
{
point
first_b
=
*
bb
;
// point first_b = *bb; // seems unused
point
prev_b
=
*
bb
;
point
prev_b
=
*
bb
;
itrT2
tmpb
=
bb
;
itrT2
tmpb
=
bb
;
++
tmpb
;
++
tmpb
;
...
...
polygon/PolyLine.cpp
View file @
6d1fe6fe
...
@@ -339,17 +339,6 @@ int CPolyLine::MakeKboolPoly( int aStart_contour, int aEnd_contour, std::vector<
...
@@ -339,17 +339,6 @@ int CPolyLine::MakeKboolPoly( int aStart_contour, int aEnd_contour, std::vector<
for
(
int
ic
=
ic_st
;
ic
<=
ic_end
;
ic
++
)
for
(
int
ic
=
ic_st
;
ic
<=
ic_end
;
ic
++
)
{
{
int
style
=
side_style
[
ic
];
int
style
=
side_style
[
ic
];
int
x2
,
y2
;
if
(
ic
<
ic_end
)
{
x2
=
corner
[
ic
+
1
].
x
;
y2
=
corner
[
ic
+
1
].
y
;
}
else
{
x2
=
corner
[
ic_st
].
x
;
y2
=
corner
[
ic_st
].
y
;
}
if
(
style
==
STRAIGHT
)
if
(
style
==
STRAIGHT
)
n_vertices
++
;
n_vertices
++
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment