+#include <string.h>
+
/* cc65 */
#include "error.h"
#include "scanner.h"
* Return atNone if the attribute name is not known.
*/
{
- attrib_t A;
+ int A;
/* For now do a linear search */
for (A = 0; A < atCount; ++A) {
if (strcmp (Attr, AttrNames[A]) == 0) {
/* Found */
- return A;
+ return (attrib_t) A;
}
}
/* Parse an additional __attribute__ modifier */
{
ident AttrName;
- attrib_t AttrType;
+ attrib_t AttrType;
/* Initialize the attribute description with "no attribute" */
A->AttrType = atNone;