Skip to content

Conversation

nigels-com
Copy link

In make debug=1 mode for gcc 13.3.0, lots of warnings about the use of FUNCTION

debug.h:46:65: warning: ISO C does not support ‘__FUNCTION__’ predefined identifier [-Wpedantic]
   46 |                 printf("%-12s +%-4u %-20s : ",__FILE__,__LINE__,__FUNCTION__); \
      |                                                                 ^~~~~~~~~~~~

For C99 onwards, use func instead.

@nigels-com
Copy link
Author

Updated to use __func__ for clang builds too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant