Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792
The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4
.
This commit is contained in:
@ -87,7 +87,7 @@ void set_font(i3Font *font) {
|
||||
* Frees the resources taken by the current font.
|
||||
*
|
||||
*/
|
||||
void free_font() {
|
||||
void free_font(void) {
|
||||
/* Close the font and free the info */
|
||||
xcb_close_font(conn, savedFont->id);
|
||||
if (savedFont->info)
|
||||
|
Reference in New Issue
Block a user