https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67793
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |50584 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to Markus Trippelsdorf from comment #1) > In C99 you can add "static" to the array function argument: > > extern int func(char x[static 32]); > > But unfortunately gcc doesn't warn for this case yet. Bug 50584 that tracks this feature request. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 [Bug 50584] No warning for passing small array to C99 static array declarator