Skip to content

Commit

Permalink
Make implicit function definition (in julia_init.c) an error (Julia…
Browse files Browse the repository at this point in the history
…Lang#936)

This is an easy thing to get wrong. Someone more familiar with Julia than
with C is not likely to recognize the significance of this error.

I've also almost never seen this intentionally ignored in the wild, so I
don't expect many false positives.
  • Loading branch information
topolarity authored Apr 4, 2024
1 parent 41ef30d commit 8e57908
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/juliaconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ end

function cflags()
flags = IOBuffer()
print(flags, "-O2 -std=gnu99")
print(flags, " -Werror-implicit-function-declaration")
print(flags, " -O2 -std=gnu99")
include = shell_escape(julia_includedir())
print(flags, " -I", include)
if Sys.isunix()
Expand Down

0 comments on commit 8e57908

Please sign in to comment.