Skip to content

Commit

Permalink
Changes imported from Abseil "staging" branch:
Browse files Browse the repository at this point in the history
  - e4999febdfea4d392284bfbc9dce9520b26d98cb Remove an erronous __attribute__((...)) tag. by Abseil Team <[email protected]>
  - 61db01b3eaad3563aa2f97d41799ef1339d57c04 Remove the default parameter value from overridden overfl... by Abseil Team <[email protected]>
  - e7dc1ee6bb523b2173915e1978f7e3831f5484f6 Fix the include guards for exception_safety_testing.h by Jon Cohen <[email protected]>

GitOrigin-RevId: e4999febdfea4d392284bfbc9dce9520b26d98cb
Change-Id: I7837e125138a1e623d9b6394c0ea5f624b904ea2
  • Loading branch information
Abseil Team authored and gennadiycivil committed Nov 1, 2017
1 parent 8db6cfd commit c56e782
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions absl/base/internal/exception_safety_testing.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Utilities for testing exception-safety

#ifndef ABSL_BASE_INTERNAL_EXCEPTION_TESTING_H_
#define ABSL_BASE_INTERNAL_EXCEPTION_TESTING_H_
#ifndef ABSL_BASE_INTERNAL_EXCEPTION_SAFETY_TESTING_H_
#define ABSL_BASE_INTERNAL_EXCEPTION_SAFETY_TESTING_H_

#include <cstddef>
#include <cstdint>
Expand Down
4 changes: 2 additions & 2 deletions absl/base/thread_annotations.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
// Mutex mu;
// int p1 GUARDED_BY(mu);
#define GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x))
#define GUARDED_VAR THREAD_ANNOTATION_ATTRIBUTE__(guarded)
#define GUARDED_VAR // no-op

// PT_GUARDED_BY()
//
Expand All @@ -72,7 +72,7 @@
// // guarded by `mu2`:
// int *q GUARDED_BY(mu1) PT_GUARDED_BY(mu2);
#define PT_GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x))
#define PT_GUARDED_VAR THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded)
#define PT_GUARDED_VAR // no-op

// ACQUIRED_AFTER() / ACQUIRED_BEFORE()
//
Expand Down
2 changes: 1 addition & 1 deletion absl/strings/internal/ostringstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class OStringStream : private std::basic_streambuf<char>, public std::ostream {
private:
using Buf = std::basic_streambuf<char>;

Buf::int_type overflow(int c = Buf::traits_type::eof()) override {
Buf::int_type overflow(int c) override {
assert(s_);
if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof()))
s_->push_back(static_cast<char>(c));
Expand Down

0 comments on commit c56e782

Please sign in to comment.