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
08467e09
Commit
08467e09
authored
Mar 30, 2008
by
f3nix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill compiler warnings.
parent
f7e9f2c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
class_text-label.cpp
eeschema/class_text-label.cpp
+3
-0
zip.c
kicad/minizip/zip.c
+6
-6
GenericPolygonClipperLibrary.cpp
polygon/GenericPolygonClipperLibrary.cpp
+7
-0
No files found.
eeschema/class_text-label.cpp
View file @
08467e09
...
...
@@ -311,6 +311,7 @@ EDA_Rect SCH_HIERLABEL::GetBoundingBox()
x
=
m_Pos
.
x
;
y
=
m_Pos
.
y
;
dx
=
dy
=
0
;
height
=
m_Size
.
y
+
2
*
TXTMARGE
;
length
=
(
Pitch
()
*
GetLength
()
)
+
height
+
2
*
DANGLING_SYMBOL_SIZE
;
// add height for triangular shapes
...
...
@@ -520,6 +521,7 @@ EDA_Rect SCH_GLOBALLABEL::GetBoundingBox()
x
=
m_Pos
.
x
;
y
=
m_Pos
.
y
;
dx
=
dy
=
0
;
height
=
m_Size
.
y
+
2
*
TXTMARGE
;
length
=
(
Pitch
()
*
GetLength
()
)
+
2
*
height
+
2
*
DANGLING_SYMBOL_SIZE
;
// add 2*height for triangular shapes (bidirectional)
...
...
@@ -569,6 +571,7 @@ EDA_Rect SCH_TEXT::GetBoundingBox()
y
=
m_Pos
.
y
;
length
=
(
Pitch
()
*
GetLength
()
);
height
=
m_Size
.
y
;
dx
=
dy
=
0
;
switch
(
m_Orient
)
// respect orientation
{
...
...
kicad/minizip/zip.c
View file @
08467e09
...
...
@@ -183,12 +183,12 @@ local void init_linkedlist(ll)
ll
->
first_block
=
ll
->
last_block
=
NULL
;
}
local
void
free_linkedlist
(
ll
)
linkedlist_data
*
ll
;
{
free_datablock
(
ll
->
first_block
);
ll
->
first_block
=
ll
->
last_block
=
NULL
;
}
//
local void free_linkedlist(ll)
//
linkedlist_data* ll;
//
{
//
free_datablock(ll->first_block);
//
ll->first_block = ll->last_block = NULL;
//
}
local
int
add_data_in_datablock
(
ll
,
buf
,
len
)
...
...
polygon/GenericPolygonClipperLibrary.cpp
View file @
08467e09
...
...
@@ -1130,6 +1130,9 @@ void gpc_polygon_clip(gpc_op op, gpc_polygon *subj, gpc_polygon *clip,
int
vclass
,
bl
,
br
,
tl
,
tr
;
double
*
sbt
=
NULL
,
xb
,
px
,
yb
,
yt
,
dy
,
ix
,
iy
;
contributing
=
bl
=
br
=
tl
=
tr
=
0
;
yt
=
dy
=
0
;
/* Test for trivial NULL result cases */
if
(((
subj
->
num_contours
==
0
)
&&
(
clip
->
num_contours
==
0
))
||
((
subj
->
num_contours
==
0
)
&&
((
op
==
GPC_INT
)
||
(
op
==
GPC_DIFF
)))
...
...
@@ -1791,6 +1794,10 @@ void gpc_tristrip_clip(gpc_op op, gpc_polygon *subj, gpc_polygon *clip,
int
vclass
,
bl
,
br
,
tl
,
tr
;
double
*
sbt
=
NULL
,
xb
,
px
,
nx
,
yb
,
yt
,
dy
,
ix
,
iy
;
cf
=
NULL
;
contributing
=
bl
=
br
=
tl
=
tr
=
0
;
yt
=
dy
=
0
;
/* Test for trivial NULL result cases */
if
(((
subj
->
num_contours
==
0
)
&&
(
clip
->
num_contours
==
0
))
||
((
subj
->
num_contours
==
0
)
&&
((
op
==
GPC_INT
)
||
(
op
==
GPC_DIFF
)))
...
...
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