Merge remote-tracking branch 'origin/swift-3.1-branch' into stable

* origin/swift-3.1-branch:
  Add a note that points to the linkage specifier for the C++ linkage errors
  Simplify the test case from r285289.
  [Sema] -Wunused-variable warning for array variables should behave similarly to scalar variables.