Commit 14f796e0 authored by Marcus Holland-Moritz's avatar Marcus Holland-Moritz Committed by Facebook GitHub Bot

Mark potentially unused argument with [[maybe_unused]] (#1697)

Summary: Pull Request resolved: https://github.com/facebook/folly/pull/1697

Reviewed By: Gownta

Differential Revision: D33483753

Pulled By: Orvid

fbshipit-source-id: d08291b5d02c61e461322edd332bb5a6e744ff96
parent 08fd3613
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <boost/preprocessor/repetition/repeat.hpp> #include <boost/preprocessor/repetition/repeat.hpp>
#include <folly/CppAttributes.h>
#include <folly/lang/Assume.h> #include <folly/lang/Assume.h>
#include <folly/lang/Exception.h> #include <folly/lang/Exception.h>
...@@ -119,7 +120,8 @@ FOLLY_RTM_DISABLED_NORETURN static bool rtmTestFunc() { ...@@ -119,7 +120,8 @@ FOLLY_RTM_DISABLED_NORETURN static bool rtmTestFunc() {
#endif #endif
} }
[[noreturn]] FOLLY_DISABLE_SANITIZERS static void rtmAbortFunc(uint8_t status) { [[noreturn]] FOLLY_DISABLE_SANITIZERS static void rtmAbortFunc(
FOLLY_MAYBE_UNUSED uint8_t status) {
#if FOLLY_RTM_SUPPORT #if FOLLY_RTM_SUPPORT
switch (status) { switch (status) {
#define FOLLY_RTM_ABORT_ONE(z, n, text) \ #define FOLLY_RTM_ABORT_ONE(z, n, text) \
......
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