Is it bad to have sscanf warning: No default value found?
#1

Hello, i was wondering is it really bad to have "sscanf warning: No default value found"
I mean, can i ignore the warning and just carry on with everything else. How will the warning impact performance and so on?
Reply
#2

I don't think it's deadly, but is it really that hard to give your optional parameters a default value?
Reply
#3

It is not really bad but it is annoying. As far as I know it's not that bad but I'm not sure about this!
To fix it:

For example, if you have sscanf(params, "dD", val1, val2)), you don't have the default value! To add a default value:
sscanf(params, "dD(1)", val1, val2)). Now this 'val2' will have default value 1!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)