wdiff-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #65688] Functions without prototypes and other warnings


From: Ryan Carsten Schmidt
Subject: [bug #65688] Functions without prototypes and other warnings
Date: Sat, 4 May 2024 23:28:53 -0400 (EDT)

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

                 Summary: Functions without prototypes and other warnings
                   Group: wdiff
               Submitter: ryandesign
               Submitted: Sun 05 May 2024 03:28:53 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 05 May 2024 03:28:53 AM UTC By: Ryan Carsten Schmidt <ryandesign>
These warnings occur when building wdiff 1.2.2 with a modern version of
clang:


./regcomp.c:260:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regcomp.c:273:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regcomp.c:473:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regcomp.c:661:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regexec.c:222:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regexec.c:308:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regexec.c:321:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regexec.c:336:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
./regexec.c:350:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
strerror.c:59:7: warning: 'sprintf' is deprecated: This function is provided
for compatibility reasons only.  Due to security concerns inherent in the
design of sprintf(3), it is highly recommended that you use snprintf(3)
instead. [-Wdeprecated-declarations]
./regexec.c:580:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
1 warning generated.
wdiff.c:959:6: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
1 warning generated.


Once compilers start compiling in C2x mode by default, this will be a problem.
Maybe you could fix these issues and release a new version of wdiff before
that happens.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]