Skip to content

Commit

Permalink
Allow implicit-function-declaration to build using GCC14/Clang15
Browse files Browse the repository at this point in the history
patch source: pret#73 (comment)
  • Loading branch information
laqieer committed Aug 17, 2024
1 parent bfa92a1 commit c89af68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VPATH = $(srcdir)

CC = gcc

BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types

INCLUDES = -I. -I$(srcdir)

Expand Down
2 changes: 1 addition & 1 deletion gcc_arm/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ALLOCA_FINISH = true
XCFLAGS =
TCFLAGS =
# CYGNUS LOCAL nowarnings/law
CFLAGS = -g -Werror-implicit-function-declaration
CFLAGS = -g -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types
BOOT_CFLAGS = -O2 $(CFLAGS)
WARN_CFLAGS =
# END CYGNUS LOCAL
Expand Down
2 changes: 1 addition & 1 deletion gcc_arm/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ cat > conftest.$ac_ext << EOF
#line 1139 "configure"
#include "confdefs.h"
main(){return(0);}
int main(){return(0);}
EOF
if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
Expand Down

0 comments on commit c89af68

Please sign in to comment.