]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk, sfdisk: avoid non-ANSI function declarations [smatch scan]
authorSami Kerola <kerolasa@iki.fi>
Mon, 20 Feb 2017 22:12:42 +0000 (22:12 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Mar 2017 13:01:14 +0000 (14:01 +0100)
commit57ebfde2916f6f3a23ff0defff5a2307ef5ecd12
tree0289dd03a82d577e1f9f50b6ec837838377e46bd
parentf5a2b07e8c2b248221daab22d085601b41a34df7
fdisk, sfdisk: avoid non-ANSI function declarations [smatch scan]

Adding _FUNCTION_DEF definition will exclude compatibility type definitions
that do include void key word in empty argument list.

/usr/include/readline/rltypedefs.h:35:23: warning: non-ANSI function
declaration of function 'Function'

These functions has been replaced by set of new ones in readline 4.2 (April
2001), and removed in 6.3 (February 2014).

Reference: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES
Rererence: https://blueslugs.com/blog/2016-10-23-updating-cppfunction-in-old-readline-consumers/
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/fdisk.c
disk-utils/sfdisk.c