Prerequisites for changing macro definitions in compiler_specific.h.

These tweaks will allow updating various macros to C++-standard style
attributes without having to simultaneously fix all callers.

Bug: none
Change-Id: Iea6bc753778aaffdbb345e6817938c33e5554c42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5806141
Commit-Queue: Daniel Cheng <[email protected]>
Code-Coverage: [email protected] <[email protected]>
Auto-Submit: Peter Kasting <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Commit-Queue: Peter Kasting <[email protected]>
Owners-Override: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1351531}
diff --git a/base/stack_canary_linux.cc b/base/stack_canary_linux.cc
index 8cbf59e3..644f32db 100644
--- a/base/stack_canary_linux.cc
+++ b/base/stack_canary_linux.cc
@@ -68,7 +68,7 @@
 }
 #endif  // !defined(NDEBUG)
 
-void NO_STACK_PROTECTOR ResetStackCanaryIfPossible() {
+NO_STACK_PROTECTOR void ResetStackCanaryIfPossible() {
   uintptr_t canary;
   base::RandBytes(base::byte_span_from_ref(canary));
   // First byte should be the null byte for string functions.