[nasm:master] remove unused coff_alignment()

nasm-bot for Johann johann.koenig at gmail.com
Mon Nov 7 17:12:25 PST 2022


Commit-ID:  47918f69201058980d793230e993d59be0522c84
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=47918f69201058980d793230e993d59be0522c84
Author:     Johann <johann.koenig at gmail.com>
AuthorDate: Sat, 12 Mar 2022 22:49:33 +0900
Committer:  Johann <johann.koenig at gmail.com>
CommitDate: Sat, 12 Mar 2022 22:49:33 +0900

remove unused coff_alignment()

Usage was removed in b6ba0a23f975844f412c2b1afc864413719b6d48
Fixes:
output/outcoff.c:302:28: warning: unused function 'coff_alignment' [-Wunused-function]
static inline unsigned int coff_alignment(uint32_t flags)
                           ^


---
 output/outcoff.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/output/outcoff.c b/output/outcoff.c
index e505fe60..27f4a09d 100644
--- a/output/outcoff.c
+++ b/output/outcoff.c
@@ -324,15 +324,6 @@ static inline uint32_t coff_sectalign_flags(unsigned int align)
     return (alignlog2_32(align) + 1) << 20;
 }
 
-/*
- * Get the alignment value from a flags field.
- * Returns 0 if no alignment defined.
- */
-static inline unsigned int coff_alignment(uint32_t flags)
-{
-    return (1U << ((flags & IMAGE_SCN_ALIGN_MASK) >> 20)) >> 1;
-}
-
 /*
  * Get the default section flags (based on section name)
  */


More information about the Nasm-commits mailing list