Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
f2f5af0d
Unverified
Commit
f2f5af0d
authored
Mar 22, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strchrnul: ignore increased required alignment warning
Fixes:
https://jenkins.linuxcontainers.org/view/LXC/job/lxc-build-android/7949/console
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
682ae756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
strchrnul.c
src/include/strchrnul.c
+4
-0
No files found.
src/include/strchrnul.c
View file @
f2f5af0d
...
@@ -31,6 +31,9 @@ char *strchrnul(const char *s, int c_in)
...
@@ -31,6 +31,9 @@ char *strchrnul(const char *s, int c_in)
unsigned
long
int
longword
,
magic_bits
,
charmask
;
unsigned
long
int
longword
,
magic_bits
,
charmask
;
unsigned
char
c
;
unsigned
char
c
;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
for
(
rta
=
__NLMSG_RTA
(
h
,
sizeof
(
*
ifi
));
__NLMSG_RTAOK
(
rta
,
h
);
c
=
(
unsigned
char
)
c_in
;
c
=
(
unsigned
char
)
c_in
;
/* Handle the first few characters by reading one character at a time.
/* Handle the first few characters by reading one character at a time.
...
@@ -45,6 +48,7 @@ char *strchrnul(const char *s, int c_in)
...
@@ -45,6 +48,7 @@ char *strchrnul(const char *s, int c_in)
but the theory applies equally well to 8-byte longwords. */
but the theory applies equally well to 8-byte longwords. */
longword_ptr
=
(
unsigned
long
int
*
)
char_ptr
;
longword_ptr
=
(
unsigned
long
int
*
)
char_ptr
;
#pragma GCC diagnostic pop
/* Bits 31, 24, 16, and 8 of this number are zero. Call these bits
/* Bits 31, 24, 16, and 8 of this number are zero. Call these bits
the "holes." Note that there is a hole just to the left of
the "holes." Note that there is a hole just to the left of
...
...
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