Skip to content

Conversation

@HedongGao
Copy link
Contributor

@HedongGao HedongGao commented Jan 14, 2026

Summary

Using certain compilers for compilation, there is an alarm message:

ctc E295: ["/home/gaohd/Public/code/dev-system/apps/include/netutils/netlib.h" 1118/45] reference to incomplete enum type
ctc E295: ["/home/gaohd/Public/code/dev-system/apps/include/netutils/netlib.h" 1133/46] reference to incomplete enum type
ctc E295: ["/home/gaohd/Public/code/dev-system/apps/include/netutils/netlib.h" 1151/23] reference to incomplete enum type
ctc E295: ["/home/gaohd/Public/code/dev-system/apps/include/netutils/netlib.h" 1169/23] reference to incomplete enum type
ctc E295: ["/home/gaohd/Public/code/dev-system/apps/include/netutils/netlib.h" 1187/23] reference to incomplete enum type

To address these alarm messages, reference files have been added to the header file.

Impact

Include header files in netlib.h

#ifdef CONFIG_NET_IPTABLES
#include <nuttx/net/netfilter/ip_tables.h>
#include <nuttx/net/netfilter/ip6_tables.h>
#endif

Testing

Compile alarm information cleared, compilation passed, Ethernet communication is normal

fixed compilation issues

Signed-off-by: gaohedong <[email protected]>
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @HedongGao :-)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants