Skip to content

Function declaration isn't a prototype [-Wstrict-prototypes] #3591

@TD-er

Description

@TD-er

Hardware:

Core Installation version: ?1.0.0? ?1.0.1-rc4? ?1.0.1? ?1.0.1-git? ?1.0.2? ?1.0.3?
IDE name: Platform.io
Computer OS: Windows 10

Description:

See the same issue as for esp8266/Arduino: esp8266/Arduino#6933

This repo has a lot of function definitions which are compiled with the C-compiler, which do not have (void) as function parameter definition, but use the () way of C++.

Just a section of the compiler warnings: (-Wstrict-prototypes enabled)

C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal.h:89:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void enableCore1WDT();
 ^
Linking .pio\build\test_ESP32_4M316k\firmware.elf
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal.h:90:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void disableCore1WDT();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal.h:103:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 unsigned long micros();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal.h:104:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 unsigned long millis();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\wiring_pulse.c:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 extern uint32_t xthal_get_ccount();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal.h:109:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void arduino_phy_init();
 ^
In file included from C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\wiring_shift.c:21:0:
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\wiring_private.h:39:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void initPins();
 ^
In file included from C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-uart.c:30:0:
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:178:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 rtc_xtal_freq_t rtc_clk_xtal_freq_get();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:199:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void rtc_clk_32k_enable_external();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:205:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 bool rtc_clk_32k_enabled();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:241:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 bool rtc_clk_8m_enabled();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:247:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 bool rtc_clk_8md256_enabled();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:278:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 rtc_slow_freq_t rtc_clk_slow_freq_get();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:292:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 uint32_t rtc_clk_slow_freq_get_hz();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:304:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 rtc_fast_freq_t rtc_clk_fast_freq_get();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:357:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 rtc_cpu_freq_t rtc_clk_cpu_freq_get()  __attribute__((deprecated));
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:446:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  void rtc_clk_cpu_freq_set_xtal();
  ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:467:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 uint32_t rtc_clk_apb_freq_get();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:524:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 uint64_t rtc_time_get();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:533:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void rtc_clk_wait_for_slow_cycle();
 ^
In file included from C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-uart.c:30:0:
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\soc/soc/rtc.h:712:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 rtc_vddsdio_config_t rtc_vddsdio_get_config();
 ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-uart.c:431:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 void uart_install_putc()
      ^
C:\Users\gijs\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-uart.c:463:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 int uartGetDebug()
     ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions