Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
99a81d29
Commit
99a81d29
authored
Aug 04, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build warnings around unused variables
parent
dc80689a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
FieldCodecTest.cs
csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
+2
-0
IssuesTest.cs
csharp/src/Google.Protobuf.Test/IssuesTest.cs
+1
-2
JsonFormatter.cs
csharp/src/Google.Protobuf/JsonFormatter.cs
+0
-1
No files found.
csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
View file @
99a81d29
...
...
@@ -39,6 +39,7 @@ namespace Google.Protobuf
{
public
class
FieldCodecTest
{
#pragma warning disable 0414 // Used by tests via reflection - do not remove!
private
static
readonly
List
<
ICodecTestData
>
Codecs
=
new
List
<
ICodecTestData
>
{
new
FieldCodecTestData
<
bool
>(
FieldCodec
.
ForBool
(
100
),
true
,
"Bool"
),
...
...
@@ -61,6 +62,7 @@ namespace Google.Protobuf
new
FieldCodecTestData
<
ForeignMessage
>(
FieldCodec
.
ForMessage
(
100
,
ForeignMessage
.
Parser
),
new
ForeignMessage
{
C
=
10
},
"Message"
),
};
#pragma warning restore 0414
[
Test
,
TestCaseSource
(
"Codecs"
)]
public
void
RoundTripWithTag
(
ICodecTestData
codec
)
...
...
csharp/src/Google.Protobuf.Test/IssuesTest.cs
View file @
99a81d29
...
...
@@ -49,8 +49,7 @@ namespace Google.Protobuf
ItemField
message
=
new
ItemField
{
Item
=
3
};
FieldDescriptor
field
=
ItemField
.
Descriptor
.
FindFieldByName
(
"item"
);
Assert
.
NotNull
(
field
);
// TODO(jonskeet): Reflection...
// Assert.AreEqual(3, (int)message[field]);
Assert
.
AreEqual
(
3
,
(
int
)
field
.
Accessor
.
GetValue
(
message
));
}
[
Test
]
...
...
csharp/src/Google.Protobuf/JsonFormatter.cs
View file @
99a81d29
...
...
@@ -739,7 +739,6 @@ namespace Google.Protobuf
private
const
string
Hex
=
"0123456789abcdef"
;
private
static
void
HexEncodeUtf16CodeUnit
(
StringBuilder
builder
,
char
c
)
{
uint
utf16
=
c
;
builder
.
Append
(
"\\u"
);
builder
.
Append
(
Hex
[(
c
>>
12
)
&
0xf
]);
builder
.
Append
(
Hex
[(
c
>>
8
)
&
0xf
]);
...
...
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