cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

ShM_1238346
New Contributor

Hi,

I am using PSoC 5.

I am trying to use "#pragma enumsalwaysint off" for selectively turning on/off the sign of the enums,

I using C99.

When I use the pragma and compile , I get the following message.

"warning: ignoring #pragma enumsalwaysint off [-Wunknown-pragmas]"

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator

C99 is supported but "#pragma enumsalwaysint off" is not a part of the definition. You need to use header guards in such cases as mentioned in the thread linked below: #pragma once?

Regards,

Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajK_81
Moderator
Moderator

C99 is supported but "#pragma enumsalwaysint off" is not a part of the definition. You need to use header guards in such cases as mentioned in the thread linked below: #pragma once?

Regards,

Dheeraj

View solution in original post

0 Likes