[PATCH,V3 1/2] libsframe: fixup comment and minor style issues

Indu Bhagat indu.bhagat@oracle.com
Fri Jul 11 06:24:33 GMT 2025


Also, use ATTRIBUTE_UNUSED consistently.

libsframe/
	* sframe.c (sframe_encoder_add_funcdesc): Fix function-level
	comment and use ATTRIBUTE_UNUSED consistently.
	(sframe_encoder_add_funcdesc_v2): Use ATTRIBUTE_UNUSED
	consistently.

---
[No changes in V3]
[No changes in V2]
---
 libsframe/sframe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index ea0e1c7cd23..5c3337670e1 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -857,7 +857,7 @@ sframe_decode_fre (const char *fre_buf, sframe_frame_row_entry *fre,
   return 0;
 }
 
-/* Decode the specified SFrame buffer CF_BUF of size CF_SIZE and return the
+/* Decode the specified SFrame buffer SF_BUF of size SF_SIZE and return the
    new SFrame decoder context.
 
    Sets ERRP for the caller if any error.  Frees up the allocated memory in
@@ -1620,7 +1620,7 @@ sframe_encoder_add_funcdesc (sframe_encoder_ctx *encoder,
 			     int32_t start_addr,
 			     uint32_t func_size,
 			     unsigned char func_info,
-			     uint32_t num_fres __attribute__ ((unused)))
+			     uint32_t num_fres ATTRIBUTE_UNUSED)
 {
   sframe_header *ehp;
   sf_fde_tbl *fd_info;
@@ -1702,7 +1702,7 @@ sframe_encoder_add_funcdesc_v2 (sframe_encoder_ctx *encoder,
 				uint32_t func_size,
 				unsigned char func_info,
 				uint8_t rep_block_size,
-				uint32_t num_fres __attribute__ ((unused)))
+				uint32_t num_fres ATTRIBUTE_UNUSED)
 {
   sf_fde_tbl *fd_info;
   int err;
-- 
2.43.0



More information about the Binutils mailing list