Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
e5e66f13
Commit
e5e66f13
authored
Jun 04, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning-related tweaks.
parent
d60914ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
common.h
c++/src/capnproto/common.h
+1
-1
common.h
c++/src/kj/common.h
+4
-4
exception.c++
c++/src/kj/exception.c++
+1
-1
No files found.
c++/src/capnproto/common.h
View file @
e5e66f13
...
...
@@ -48,7 +48,7 @@ inline T& operator<<(T& os, Void) { return os << "void"; }
using
kj
::
byte
;
class
word
{
uint64_t
content
KJ_UNUSED_
FOR_CLANG
;
KJ_DISALLOW_COPY
(
word
);
public
:
word
()
=
default
;
};
class
word
{
uint64_t
content
KJ_UNUSED_
MEMBER
;
KJ_DISALLOW_COPY
(
word
);
public
:
word
()
=
default
;
};
// word is an opaque type with size of 64 bits. This type is useful only to make pointer
// arithmetic clearer. Since the contents are private, the only way to access them is to first
// reinterpret_cast to some other pointer type.
...
...
c++/src/kj/common.h
View file @
e5e66f13
...
...
@@ -104,11 +104,11 @@ typedef unsigned char byte;
#define KJ_UNUSED __attribute__((unused));
#if __clang__
#define KJ_UNUSED_
FOR_CLANG
__attribute__((unused));
//
Clang reports "unused" warnings in some places where GCC does not even allow the "unused"
//
attribute
.
#define KJ_UNUSED_
MEMBER
__attribute__((unused));
//
Inhibits "unused" warning for member variables. Only Clang produces such a warning, while GCC
//
complains if the attribute is set on members
.
#else
#define KJ_UNUSED_
FOR_CLANG
#define KJ_UNUSED_
MEMBER
#endif
namespace
internal
{
...
...
c++/src/kj/exception.c++
View file @
e5e66f13
...
...
@@ -44,7 +44,7 @@ String getStackSymbols(ArrayPtr<void* const> trace) {
char
exe
[
512
];
ssize_t
n
=
readlink
(
"/proc/self/exe"
,
exe
,
sizeof
(
exe
));
if
(
n
<
0
||
n
>=
s
izeof
(
exe
))
{
if
(
n
<
0
||
n
>=
s
tatic_cast
<
ssize_t
>
(
sizeof
(
exe
)
))
{
return
nullptr
;
}
exe
[
n
]
=
'\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