Fix class member shadowing in folly::ProducerConsumerQueue
[folly.git] / folly / MallctlHelper.cpp
index 7e224d0817a594048f49820ba1eb78ad843013f1..a130c46c1e4e35411ff7db997b35df2709c3e908 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ namespace folly {
 
 namespace detail {
 
-void handleMallctlError(const char* cmd, int err) {
+[[noreturn]] void handleMallctlError(const char* cmd, int err) {
   assert(err != 0);
   throw std::runtime_error(
       sformat("mallctl {}: {} ({})", cmd, errnoStr(err), err));