Disabling rexlang compile warnings



  • Hello,

    In one of my codes I'm getting a warning on not using a variable even though I kinda do, what #pragma should I use to disable getting this warning

    Warning compiling file '../.rexlang/database.c' (line 29): variable 'dateInterval' is assigned but not used

    I tried #pragma warning(disable: 4189) but thats no good.

    Thanks in advance!



  • Hello,
    I do not have any better advice than to add this line to your code, which will make the compiler believe that the variable dateInterval is used.

    dateInterval = dateInterval;
    

    Can you share or send your code leading to such a false warning? Thank you.

    Jaroslav


Log in to reply