Commit f3144676 authored by fbarchard@google.com's avatar fbarchard@google.com

fix unused variable warning on windows for basic_types

BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/928017

git-svn-id: http://libyuv.googlecode.com/svn/trunk@464 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent daed763f
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 463 Version: 464
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 463 #define LIBYUV_VERSION 464
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -24,14 +24,14 @@ TEST_F(libyuvTest, Endian) { ...@@ -24,14 +24,14 @@ TEST_F(libyuvTest, Endian) {
} }
TEST_F(libyuvTest, SizeOfTypes) { TEST_F(libyuvTest, SizeOfTypes) {
int8 i8; int8 i8 = -1;
uint8 u8; uint8 u8 = 1u;
int16 i16; int16 i16 = -1;
uint16 u16; uint16 u16 = 1u;
int32 i32; int32 i32 = -1;
uint32 u32; uint32 u32 = 1u;
int64 i64; int64 i64 = -1;
uint64 u64; uint64 u64 = 1u;
EXPECT_EQ(1u, sizeof(i8)); EXPECT_EQ(1u, sizeof(i8));
EXPECT_EQ(1u, sizeof(u8)); EXPECT_EQ(1u, sizeof(u8));
EXPECT_EQ(2u, sizeof(i16)); EXPECT_EQ(2u, sizeof(i16));
...@@ -40,6 +40,14 @@ TEST_F(libyuvTest, SizeOfTypes) { ...@@ -40,6 +40,14 @@ TEST_F(libyuvTest, SizeOfTypes) {
EXPECT_EQ(4u, sizeof(u32)); EXPECT_EQ(4u, sizeof(u32));
EXPECT_EQ(8u, sizeof(i64)); EXPECT_EQ(8u, sizeof(i64));
EXPECT_EQ(8u, sizeof(u64)); EXPECT_EQ(8u, sizeof(u64));
EXPECT_GT(0, i8);
EXPECT_LT(0u, u8);
EXPECT_GT(0, i16);
EXPECT_LT(0u, u16);
EXPECT_GT(0, i32);
EXPECT_LT(0u, u32);
EXPECT_GT(0, i64);
EXPECT_LT(0u, u64);
} }
TEST_F(libyuvTest, SizeOfConstants) { TEST_F(libyuvTest, SizeOfConstants) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment