Diagnostic 278: variable "xxxx" was declared with a never-completed type

Diagnostic 278: variable "xxxx" was declared with a never-completed type

Thank you for your interest in this diagnostic message. We are still in the process of documenting this specific diagnostic.

Please let us know of your experience with this diagnostic message by posting a comment below. Your interest in this diagnostic will help us prioritize the order we document diagnostics.

For more complete information about compiler optimizations, see our Optimization Notice.

2 comments

Top
anonymous's picture

Hi,
This indicates that "fuart" structure definition is missing. OR the file where the structure of "fuart" is defined, not included as the header under include section. Hence include the file and compille, and it will work.

regards
-sahil

anonymous's picture

#include <stdio.h>
FILE fuart; /// This gives error as Error: #235: variable "fuart" was declared with a never-completed type

Func()
{
fuart.handle = UART;
fgetc(&fuart);
}

TO SOLVE THIS:
#include <stdio.h>
struct __FILE { ///// ADD THIS DEFINITION.
U32 handle;
};

FILE fuart; /// This gives error as Error: #235: variable "fuart" was declared with a never-completed type

Func()
{
fuart.handle = UART;
fgetc(&fuart);
}

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.