ITADN

Subject: Conflict between declaration without prototype and definition with prototype of __dls2

#92Openoresterosso75 创建于 2024-11-11
O
oresterosso75commented
During compilation, a warning occurred regarding a conflict between the declaration of __dls2 without a prototype in the dlstart.c file and its definition with a prototype in the rcrt1.c file. The compiler reports that the declaration without a prototype is deprecated and is treated as a zero-parameter prototype in C2x. `warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]` ![photo_2024-11-11_18-15-20](https://github.com/user-attachments/assets/fb32b082-98e1-48bc-b417-84e0b803cab8) Request: How can we resolve this conflict? Should the declaration be aligned with the prototype, or are there other solutions to consider?
1 条评论