0

After changing the compiler to rx 8.3.0.201904-gnurx-elf I get 56 warnings. See below.
Unfortunately I can’t find the definition of snprintf()
Where is snprintf() declared and defined?
What do I have to do to clear the warnings?

Best Regards,

Roger

======================================

‘Building file: ../src/sound.cpp’
In file included from ../src/kombination.cpp:12:
c:\program files (x86)\gcc for renesas rx 8.3.0.201904-gnurx-elf\rx-elf\rx-elf\rx-elf\optlibinc\stdio.h:28:6: warning: declaration of ‘int snprintf(char*, size_t, const char*, …)’ conflicts with built-in declaration ‘int snprintf(char*, long unsigned int, const char*, …)’ [-Wbuiltin-declaration-mismatch]
 int  snprintf(char *, size_t, const char *, …);
^~~~~~~~
‘Invoking Compiler’
‘rx-elf-gcc -O0 -fdata-sections -g2 -Wstack-usage=1024 -mcpu=rx600 -misa=v1 -mlittle-endian-data -std=gnu++11 -I”C:\\Program Files (x86)\\GCC for Renesas RX 8.3.0.201904-GNURX-ELF\\rx-elf\\rx-elf\\/rx-elf/optlibinc” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/generate” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/RTOS/include” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/RTOS/portable/GCC/RX600″ -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Applikation” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Daten” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Geraete” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Hilfsfunktionen” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/HMI” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/HMI/Bilder” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/HMI/Schriftarten” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/HMI/Display” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/HMI/Elemente” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Kommunikation” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Kommunikation/Protokoll” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber/FT81x” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber/Flash_API/u_bsp” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber/Flash_API/r_flash_rx” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber/Flash_API/r_flash_rx/src” -I”C:/Users/Win64_VM/Projekte lokal gespiegelt/GEWA_UP300/Workspace/GEWA_UPx_V/src/Treiber/Flash_API/r_flash_rx/src/fcu” -DCPPAPP -Wa,-anh=”sound.lst” -MMD -MP -MF”src/sound.d” -MT”src/sound.o” -c “../src/sound.cpp” -o “src/sound.o”‘
rx-elf-gcc @”src/sound.o.in”
In file included from ../src/sound.cpp:12:
c:\program files (x86)\gcc for renesas rx 8.3.0.201904-gnurx-elf\rx-elf\rx-elf\rx-elf\optlibinc\stdio.h:28:6: warning: declaration of ‘int snprintf(char*, size_t, const char*, …)’ conflicts with built-in declaration ‘int snprintf(char*, long unsigned int, const char*, …)’ [-Wbuiltin-declaration-mismatch]
int  snprintf(char *, size_t, const char *, …);
^~~~~~~~
‘Finished building: ../src/sound.cpp’
‘ ‘

======================================

Roger commented
    • Hello Roger,

      As you have also opened a support ticket for this same issue, and we are continuing to provide support for this through that private ticket, please let us know if you wish to keep this issue open or if we can mark it as closed.

      __
      Thank you,
      The GNU Tools Team

    • I’m still waiting for an answer on the private ticket. Had to open the ticket again after your solution didn’t work yet. But here we can close it.
      Best Regards,
      Roger