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
6e8a8a6b
Commit
6e8a8a6b
authored
Mar 21, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some coverity warnings (mainly not initialized members)
parent
35c23f31
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
4 deletions
+28
-4
cairo_compositor.cpp
common/gal/cairo/cairo_compositor.cpp
+4
-0
graphics_abstraction_layer.cpp
common/gal/graphics_abstraction_layer.cpp
+2
-0
cached_container.cpp
common/gal/opengl/cached_container.cpp
+5
-0
shader.cpp
common/gal/opengl/shader.cpp
+3
-0
dialog_edit_libentry_fields_in_lib.cpp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
+1
-0
dialog_edit_one_field.h
eeschema/dialogs/dialog_edit_one_field.h
+8
-0
libdxfrw.cpp
lib_dxf/libdxfrw.cpp
+1
-1
export_gencad.cpp
pcbnew/exporters/export_gencad.cpp
+2
-3
gpcb_plugin.cpp
pcbnew/gpcb_plugin.cpp
+2
-0
No files found.
common/gal/cairo/cairo_compositor.cpp
View file @
6e8a8a6b
...
@@ -36,6 +36,10 @@ using namespace KIGFX;
...
@@ -36,6 +36,10 @@ using namespace KIGFX;
CAIRO_COMPOSITOR
::
CAIRO_COMPOSITOR
(
cairo_t
**
aMainContext
)
:
CAIRO_COMPOSITOR
::
CAIRO_COMPOSITOR
(
cairo_t
**
aMainContext
)
:
m_current
(
0
),
m_currentContext
(
aMainContext
),
m_mainContext
(
*
aMainContext
)
m_current
(
0
),
m_currentContext
(
aMainContext
),
m_mainContext
(
*
aMainContext
)
{
{
// Do not have uninitialized members:
cairo_matrix_init_identity
(
&
m_matrix
);
m_stride
=
0
;
m_bufferSize
=
0
;
}
}
...
...
common/gal/graphics_abstraction_layer.cpp
View file @
6e8a8a6b
...
@@ -48,8 +48,10 @@ GAL::GAL() :
...
@@ -48,8 +48,10 @@ GAL::GAL() :
SetWorldUnitLength
(
1.0
/
METRIC_UNIT_LENGTH
*
2.54
);
// 1 inch in nanometers
SetWorldUnitLength
(
1.0
/
METRIC_UNIT_LENGTH
*
2.54
);
// 1 inch in nanometers
SetScreenDPI
(
106
);
// Display resolution setting
SetScreenDPI
(
106
);
// Display resolution setting
SetDepthRange
(
VECTOR2D
(
GAL
::
MIN_DEPTH
,
GAL
::
MAX_DEPTH
)
);
SetDepthRange
(
VECTOR2D
(
GAL
::
MIN_DEPTH
,
GAL
::
MAX_DEPTH
)
);
SetLayerDepth
(
0.0
);
SetFlip
(
false
,
false
);
SetFlip
(
false
,
false
);
SetLineWidth
(
1.0
);
SetLineWidth
(
1.0
);
ComputeWorldScale
();
// Set grid defaults
// Set grid defaults
SetGridVisibility
(
true
);
SetGridVisibility
(
true
);
...
...
common/gal/opengl/cached_container.cpp
View file @
6e8a8a6b
...
@@ -47,6 +47,11 @@ CACHED_CONTAINER::CACHED_CONTAINER( unsigned int aSize ) :
...
@@ -47,6 +47,11 @@ CACHED_CONTAINER::CACHED_CONTAINER( unsigned int aSize ) :
{
{
// In the beginning there is only free space
// In the beginning there is only free space
m_freeChunks
.
insert
(
CHUNK
(
aSize
,
0
)
);
m_freeChunks
.
insert
(
CHUNK
(
aSize
,
0
)
);
// Do not have uninitialized members:
m_chunkSize
=
0
;
m_chunkOffset
=
0
;
m_itemSize
=
0
;
}
}
...
...
common/gal/opengl/shader.cpp
View file @
6e8a8a6b
...
@@ -45,7 +45,10 @@ SHADER::SHADER() :
...
@@ -45,7 +45,10 @@ SHADER::SHADER() :
maximumVertices
(
4
),
maximumVertices
(
4
),
geomInputType
(
GL_LINES
),
geomInputType
(
GL_LINES
),
geomOutputType
(
GL_LINES
)
geomOutputType
(
GL_LINES
)
{
{
// Do not have uninitialized members:
programNumber
=
0
;
}
}
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
View file @
6e8a8a6b
...
@@ -164,6 +164,7 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB(
...
@@ -164,6 +164,7 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB(
{
{
m_parent
=
aParent
;
m_parent
=
aParent
;
m_libEntry
=
aLibEntry
;
m_libEntry
=
aLibEntry
;
m_skipCopyFromPanel
=
false
;
GetSizer
()
->
SetSizeHints
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
Centre
();
Centre
();
...
...
eeschema/dialogs/dialog_edit_one_field.h
View file @
6e8a8a6b
...
@@ -59,6 +59,14 @@ public:
...
@@ -59,6 +59,14 @@ public:
{
{
m_parent
=
aParent
;
m_parent
=
aParent
;
SetTitle
(
aTitle
);
SetTitle
(
aTitle
);
// Avoid not initialized members:
m_textshape
=
0
;
m_textsize
=
0
;
m_textorient
=
0
;
m_textHjustify
=
GR_TEXT_HJUSTIFY_CENTER
;
m_textVjustify
=
GR_TEXT_VJUSTIFY_CENTER
;
m_text_invisible
=
false
;
}
}
// ~DIALOG_EDIT_ONE_FIELD() {};
// ~DIALOG_EDIT_ONE_FIELD() {};
...
...
lib_dxf/libdxfrw.cpp
View file @
6e8a8a6b
...
@@ -1403,7 +1403,7 @@ bool dxfRW::writeDimension( DRW_Dimension* ent )
...
@@ -1403,7 +1403,7 @@ bool dxfRW::writeDimension( DRW_Dimension* ent )
writer
->
writeUtf8String
(
3
,
ent
->
getStyle
()
);
writer
->
writeUtf8String
(
3
,
ent
->
getStyle
()
);
if
(
ent
->
get
TextLineFacto
r
()
!=
0
)
if
(
ent
->
get
Di
r
()
!=
0
)
writer
->
writeDouble
(
53
,
ent
->
getDir
()
);
writer
->
writeDouble
(
53
,
ent
->
getDir
()
);
writer
->
writeDouble
(
210
,
ent
->
getExtrusion
().
x
);
writer
->
writeDouble
(
210
,
ent
->
getExtrusion
().
x
);
...
...
pcbnew/exporters/export_gencad.cpp
View file @
6e8a8a6b
...
@@ -1030,13 +1030,12 @@ static void CreateBoardSection( FILE* aFile, BOARD* aPcb )
...
@@ -1030,13 +1030,12 @@ static void CreateBoardSection( FILE* aFile, BOARD* aPcb )
fputs
(
"$BOARD
\n
"
,
aFile
);
fputs
(
"$BOARD
\n
"
,
aFile
);
// Extract the board edges
// Extract the board edges
for
(
EDA_ITEM
*
drawing
=
aPcb
->
m_Drawings
;
for
(
EDA_ITEM
*
drawing
=
aPcb
->
m_Drawings
;
drawing
!=
0
;
drawing
!=
0
;
drawing
=
drawing
->
Next
()
)
drawing
=
drawing
->
Next
()
)
{
{
if
(
drawing
->
Type
()
==
PCB_LINE_T
)
if
(
drawing
->
Type
()
==
PCB_LINE_T
)
{
{
DRAWSEGMENT
*
drawseg
=
dynam
ic_cast
<
DRAWSEGMENT
*>
(
drawing
);
DRAWSEGMENT
*
drawseg
=
stat
ic_cast
<
DRAWSEGMENT
*>
(
drawing
);
if
(
drawseg
->
GetLayer
()
==
Edge_Cuts
)
if
(
drawseg
->
GetLayer
()
==
Edge_Cuts
)
{
{
// XXX GenCAD supports arc boundaries but I've seen nothing that reads them
// XXX GenCAD supports arc boundaries but I've seen nothing that reads them
...
...
pcbnew/gpcb_plugin.cpp
View file @
6e8a8a6b
...
@@ -855,6 +855,7 @@ GPCB_PLUGIN::GPCB_PLUGIN() :
...
@@ -855,6 +855,7 @@ GPCB_PLUGIN::GPCB_PLUGIN() :
m_cache
(
0
),
m_cache
(
0
),
m_ctl
(
0
)
m_ctl
(
0
)
{
{
m_reader
=
NULL
;
init
(
0
);
init
(
0
);
}
}
...
@@ -863,6 +864,7 @@ GPCB_PLUGIN::GPCB_PLUGIN( int aControlFlags ) :
...
@@ -863,6 +864,7 @@ GPCB_PLUGIN::GPCB_PLUGIN( int aControlFlags ) :
m_cache
(
0
),
m_cache
(
0
),
m_ctl
(
aControlFlags
)
m_ctl
(
aControlFlags
)
{
{
m_reader
=
NULL
;
init
(
0
);
init
(
0
);
}
}
...
...
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