freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] Fix `-Wstrict-prototypes`.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] Fix `-Wstrict-prototypes`.
Date: Thu, 10 Nov 2022 04:39:28 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • e82371bf
    by Sam James at 2022-11-10T05:38:55+01:00
    Fix `-Wstrict-prototypes`.
    
    * builds/unix/configure.raw: Fix `-Wstrict-prototypes`.
    Clang 16 warns on these and they will be dropped in C23.
    
    * builds/unix/freetype2.m4: Ditto.
    
    Signed-off-by: Sam James <sam@gentoo.org>
    

2 changed files:

Changes:

  • builds/unix/configure.raw
    ... ... @@ -50,7 +50,7 @@ if test ${cross_compiling} = yes; then
    50 50
     
    
    51 51
       AC_MSG_CHECKING([for suffix of native executables])
    
    52 52
       rm -f a.* b.* a_out.exe conftest.*
    
    53
    -  echo > conftest.c "int main() { return 0;}"
    
    53
    +  echo > conftest.c "int main(void) { return 0;}"
    
    54 54
       ${CC_BUILD} conftest.c || AC_MSG_ERROR([native C compiler is not working])
    
    55 55
       rm -f conftest.c
    
    56 56
       if test -x a.out -o -x b.out -o -x conftest; then
    

  • builds/unix/freetype2.m4
    ... ... @@ -121,7 +121,7 @@ AC_DEFUN([AC_CHECK_FT2],
    121 121
     #include <stdlib.h>
    
    122 122
     
    
    123 123
     int
    
    124
    -main()
    
    124
    +main(void)
    
    125 125
     {
    
    126 126
       FT_Library library;
    
    127 127
       FT_Error  error;
    


  • reply via email to

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