This silences the following warning:
libavcodec/x86/fft.asm:93: warning: section flags ignored on section
redeclaration
The cause of this warning is that because `struc` and `endstruc` attempts to
revert to the previous section state [1]. The section state is stored in the
macro __SECT__, defined by x86inc.asm to be `.note.GNU-stack ...`, through the
`SECTION` directive [2]. Thus, the `.note.GNU-stack` section is defined twice
(once in x86inc.asm, once during `endstruc`), causing the warning.
Now, we can use the `[section]` directive in x86inc.asm instead of `SECTION`
which does not change the `__SECT__` macro [2]. But it doesn't help as
`__SECT__` is predefined to be `.text`, which conflicts with the later
`SECTION_TEXT` (which expands to `.text align=16`).
This commit redefines `__SECT__` as empty, working around this problem in what
I believe the cleanest solution.
[1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4
[2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3
---
libavcodec/x86/fft.asm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/x86/fft.asm b/libavcodec/x86/fft.asm
index e4744a3..37449b3 100644
--- a/libavcodec/x86/fft.asm
+++ b/libavcodec/x86/fft.asm
@@ -36,6 +36,8 @@
%define pointer resd
%endif
+%define __SECT__
+
struc FFTContext
.nbits: resd 1
.reverse: resd 1
--
1.9.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel