Search

error: function declaration isn’t a prototype [-Werror=strict-prototypes]

While compiling kernel modules, or any c program, we might at times come across the error



This error is being shown for the function declaration



Though the syntax looks fine, the compiler is expecting us to pass "void" in case we are not passing any arguments to the function. That is we need to modify the above function to

After the above change, we should not get the above error.

3 comments:

  1. Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.
    Créer un produit

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete