[llvm] [NFC] Add SHF_NONE to fix Werror=extra warning (PR #112808)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 19:09:53 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c3bbc3a57d439a039d2ea49d9b7e0f6e1c87219d 9fcfbd339b9b7001dd5023fbc44960bbce0a9105 --extensions cpp,h -- llvm/include/llvm/BinaryFormat/ELF.h llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/BinaryFormat/ELF.h b/llvm/include/llvm/BinaryFormat/ELF.h
index eb594b1baa..2bb50e4b06 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -1181,7 +1181,7 @@ enum : unsigned {
 // Section flags.
 enum : unsigned {
   // No flag
-  SHF_NONE= 0x0,
+  SHF_NONE = 0x0,
 
   // Section data should be writable during execution.
   SHF_WRITE = 0x1,

``````````

</details>


https://github.com/llvm/llvm-project/pull/112808


More information about the llvm-commits mailing list