URL:
  <https://savannah.gnu.org/bugs/?67536>

                 Summary: -Wmisleading-indentation warning in strtrans.c
                   Group: The GNU Bourne-Again SHell
               Submitter: correctmost
               Submitted: Fri 19 Sep 2025 04:07:36 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 19 Sep 2025 04:07:36 PM UTC By: correctmost <correctmost>
gcc reports a -Wmisleading-indentation warning in strtrans.c:


strtrans.c: In function ‘ansic_quote’:
strtrans.c:278:11: warning: this ‘else’ clause does not guard...
[-Wmisleading-indentation]
  278 |           else
      |           ^~~~
strtrans.c:286:13: note: ...this statement, but the latter is misleadingly
indented as if it were guarded by the ‘else’
  286 |             *r++ = '\\';
      |             ^


Version info:
- cf8a2518c8b94f75b330d398f5daa0ee21417e1b (devel)
- gcc 15.2.1 on Arch Linux







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67536>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to