I want to run splint on some of my sources within a debian stable environment.
I need to give the preprocessor directive -DUINT16_T='unsigned short' and as I need that very often. I'd like to place it inside my .splintrc file.
When running from commandline like splint -DUINT16_T='unsigned short' mysource.c it is working well. If moving this line into my .splintrc file
-DUINT16_T='unsigned short'
-I/usr/local/include/
the splint call results in
Cannot list files in .splintrc files:
short' (probable missing + or -)
A flag is not recognized or used in an incorrect way (Use -badflag to inhibit
warning)
Has anyone a solution? (No alias, please).
For furher discussion I'll offer a mnwe (minimal not working example) hello.c, which might help:
#include <stdio.h>
int main (void)
{
UINT16_T returnvalue=0;
printf ("Hello, world!\n");
return returnvalue;
}
The command gcc -DUINT16_T='unsigned short' hello.c runs fine - and also does splint -DUINT16_T='unsigned short' hello.c which of course claims
Return value type unsigned short int does not match declared type
int: returnvalue
But again, how can I include this DEFINE into my .splintrc?