[riot-devel] Function declaration isn't a prototype

Joakim NohlgÄrd joakim at nohlgard.se
Thu Feb 7 19:34:36 CET 2019

The obvious workaround is to turn off the warning via -Wno-strict-prototypes
The alternative is to fix the function declarations in the headers. IIRC
this is what shows up when you forget to put void inside the argument list
of a function which takes no arguments in C (it is not a warning in C++).

Best regards, Joakim

Den tors 7 feb. 2019 19:00 skrev Gunar Schorcht <gunar at schorcht.net>:

> Hi,
> what would be the right way, if there is one, to use vendor code without
> modifications in case of bunch of following error messages?
> "error: function declaration isn't a prototype [-Werror=strict-prototypes]"
> Regards
> Gunar
> --
> Wenn du laufen willst, lauf eine Meile. Wenn du ein neues Leben
> kennenlernen willst, dann lauf Marathon. (Emil Zatopek)
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20190207/fb86d615/attachment.html>

More information about the devel mailing list