id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
2100,[PATCH] generated FFI ccall stub prototypes are incomplete,pcc,,"For generated C prototypes in which there are no arguments, the argument list should be ""void"", not blank.  The GCC flag -Wstrict-prototypes warns about this.

To reproduce: create file Test.hs as follows
{{{
{-# OPTIONS -fffi #-} 

module Test where

foreign export ccall ""foo"" foo :: IO ()

foo = putStrLn ""hello world""
}}}
and file use_test.c as follows:
{{{
#include ""Test_stub.h""
}}}
Execute the following:
{{{
ghc -c Test.hs
gcc -Wstrict-prototypes -I/usr/lib/ghc-6.6/include -c use_test.c
}}}
(change path as appropriate).  Expected output: nothing.  Actual output:
{{{
In file included from use_test.c:1:
Test_stub.h:5: warning: function declaration isn’t a prototype
}}}
Patch attached.",bug,closed,normal,6.8.3,Compiler (FFI),6.9,fixed,,,Unknown/Multiple,Unknown/Multiple,,Unknown,,,,
