2 Replies Latest reply on Jul 19, 2018 8:47 PM by anks

    Enums changing sign

    shyam.sundar.m.r

      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]"

      Why am I getting the warning? What is the best way to selectively turn on/off the sign of the enums?