Liming,
GCC can detect redefinition of same type.
typedef int foo;
typedef int foo;
int main (int argc, char *argv[]) {
return 0;
}
gcc a.c -Wpedantic -std=c99
a.c:2:13: warning: redefinition of typedef ‘foo’ [-Wpedantic]
typedef int foo;
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3287
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3286
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3285
Remove duplicate declarations of the following types that may
generate compiler warnings or errors:
* EFI_HII_POPUP_PROTOCOL
*