Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
2d44051a
Unverified
Commit
2d44051a
authored
Dec 28, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/silence_nxcompshad_warnings' into 3.6.x
Fixes: ArcticaProject/nx-libs#572
parents
061c3577
2cade632
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
Core.cpp
nxcompshad/src/Core.cpp
+14
-4
Logger.h
nxcompshad/src/Logger.h
+5
-0
No files found.
nxcompshad/src/Core.cpp
View file @
2d44051a
...
...
@@ -337,7 +337,10 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
}
}
XRectangle
rect
=
{
0
,
curLine
,
width_
,
1
};
XRectangle
rect
=
{
0
,
static_cast
<
short
>
(
curLine
),
static_cast
<
unsigned
short
>
(
width_
),
1
};
char
*
buffer
;
...
...
@@ -443,9 +446,13 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
break
;
}
if
((
curWorkLine
-
last
>
minSliceHeight_
)
||
(
last
-
start
>
maxSliceHeight_
))
if
((
curWorkLine
-
last
>
minSliceHeight_
)
||
(
last
-
start
>
maxSliceHeight_
))
{
XRectangle
rect
=
{
left
,
start
,
right
-
left
+
1
,
last
-
start
+
1
};
XRectangle
rect
=
{
static_cast
<
short
>
(
left
),
static_cast
<
short
>
(
start
),
static_cast
<
unsigned
short
>
(
right
-
left
+
1
),
static_cast
<
unsigned
short
>
(
last
-
start
+
1
)};
XUnionRectWithRegion
(
&
rect
,
lastUpdatedRegion_
,
lastUpdatedRegion_
);
...
...
@@ -477,7 +484,10 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
if
(
last
>=
start
)
{
XRectangle
rect
=
{
left
,
start
,
right
-
left
+
1
,
last
-
start
+
1
};
XRectangle
rect
=
{
static_cast
<
short
>
(
left
),
static_cast
<
short
>
(
start
),
static_cast
<
unsigned
short
>
(
right
-
left
+
1
),
static_cast
<
unsigned
short
>
(
last
-
start
+
1
)};
XUnionRectWithRegion
(
&
rect
,
lastUpdatedRegion_
,
lastUpdatedRegion_
);
}
...
...
nxcompshad/src/Logger.h
View file @
2d44051a
...
...
@@ -29,6 +29,9 @@
#include <cerrno>
#include <cstdarg>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
//
// Error handling macros.
//
...
...
@@ -164,4 +167,6 @@ static inline void logDump(const char *name, const char *data, int size)
#endif
}
#pragma GCC diagnostic pop
#endif
/* Logger_H */
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