Fix old-style function definitions and enable warning. (#1651)

Function definitions with no parameters should always use the void keyword to allow the compiler to catch invalid calls of those functions at compile time.

Enable -Wold-style-definition to catch this early in the future.

Fixes #1649.

JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
This commit is contained in:
Tilmann Scheller
2017-03-09 13:41:26 +01:00
committed by GitHub
parent a2a160d6f9
commit f8dd54abb6
13 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ void jerry_port_fatal (jerry_fatal_code_t code)
* @return current timer's counter value in milliseconds
*/
double
jerry_port_get_current_time ()
jerry_port_get_current_time (void)
{
int64_t ms = k_uptime_get();
return (double) ms;