Skip to content

Commit

Permalink
Fix more compile warnings on gcc 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chen3feng committed May 30, 2018
1 parent 5f38b62 commit 9ea9602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hash/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ cc_library(
':murmur',
'//thirdparty/stringencoders:stringencoders'
],
extra_cppflags = ['-Wno-implicit-fallthrough'],
)

cc_library(
Expand All @@ -52,6 +53,7 @@ cc_library(
'murmur/MurmurHashAligned2.cpp',
'murmur/MurmurHashNeutral2.cpp',
],
extra_cppflags = ['-Wno-implicit-fallthrough'],
)

cc_test(
Expand Down
2 changes: 1 addition & 1 deletion system/threading/semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace internal {

bool SemaphoreOps::TryAcquire(sem_t* sem)
{
if (TOFT_EINTR_IGNORED(sem_trywait(sem) == 0))
if (TOFT_EINTR_IGNORED(sem_trywait(sem)) == 0)
return true;
int error = errno;
if (error == EAGAIN)
Expand Down

0 comments on commit 9ea9602

Please sign in to comment.