Duplicate Code Entry Names in Code Symbol

Old Content - visit altium.com/documentation

This compiler hint appears when at least two C Code Entries associated with the same C Code Symbol are detected to have the same Parameter Name, irrespective of whether the names differ in case. The message is displayed in the Messages panel in the following format:

Duplicate code entry names (case insensitive) "EntryName" in Code Symbol SymbolDesignator,

where

EntryName is the Parameter Name that is being used by more than one C Code Entry

SymbolDesignator is the designator of the C Code Symbol to which the offending C Code Entries are associated.

Default Report Mode

Error

Recommendation

Open the C source code file referenced by the C Code Symbol and check the parameter naming used in the exported C function. Even though C allows parameters of a function to have the same name if they differ in case, it is illegal for two C Code Entries to do so. If this is the case, rename the function's parameters accordingly.

If the parameter names in the source function are different, the error will be local to the C Code Symbol. Double-click on the symbol to access the C Code Symbol dialog and edit the offending parameters on the Signature tab. Alternatively, edit the Parameter Name property for one of the offending C Code Entry objects directly.

You are reporting an issue with the following selected text and/or image within the active document: