]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libsframe: fixup comment and minor style issues
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 12 Jul 2025 07:10:36 +0000 (00:10 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sat, 12 Jul 2025 07:10:36 +0000 (00:10 -0700)
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.

libsframe/sframe.c

index d482d58b9c6bca3f87cfa502e371d3d50c249fed..659b39d4ddd89e67f412533e57f3b360bdc25214 100644 (file)
@@ -876,7 +876,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
@@ -1639,7 +1639,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;
@@ -1721,7 +1721,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;