X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FSynchronized.h;h=4fce71b580d5e2f83b0eaf78d24a2fb429423253;hb=f975d3c54800b7065985e5e548ce1d91fef4926c;hp=5b6f9fc0e6b6372f9b132f2e6aed469f83fc66cb;hpb=ed8c80a0e0988e4ce687f51ca832a00e4a6b7930;p=folly.git diff --git a/folly/Synchronized.h b/folly/Synchronized.h index 5b6f9fc0..4fce71b5 100644 --- a/folly/Synchronized.h +++ b/folly/Synchronized.h @@ -626,7 +626,7 @@ struct Synchronized : public SynchronizedBase< /** * Attempts to acquire for a given number of milliseconds. If - * acquisition is unsuccessful, the returned LockedPtr is NULL. + * acquisition is unsuccessful, the returned LockedPtr is nullptr. * * NOTE: This API is deprecated. Use lock(), wlock(), or rlock() instead. * In the future it will be marked with a deprecation attribute to emit @@ -638,7 +638,7 @@ struct Synchronized : public SynchronizedBase< /** * Attempts to acquire for a given number of milliseconds. If - * acquisition is unsuccessful, the returned ConstLockedPtr is NULL. + * acquisition is unsuccessful, the returned ConstLockedPtr is nullptr. * * NOTE: This API is deprecated. Use lock(), wlock(), or rlock() instead. * In the future it will be marked with a deprecation attribute to emit @@ -1320,7 +1320,7 @@ void swap(Synchronized& lhs, Synchronized& rhs) { */ #define SYNCHRONIZED(...) \ FOLLY_PUSH_WARNING \ - FOLLY_GCC_DISABLE_WARNING(shadow) \ + FOLLY_GCC_DISABLE_WARNING("-Wshadow") \ FOLLY_MSVC_DISABLE_WARNING(4189) /* initialized but unreferenced */ \ FOLLY_MSVC_DISABLE_WARNING(4456) /* declaration hides local */ \ FOLLY_MSVC_DISABLE_WARNING(4457) /* declaration hides parameter */ \