GCC produces warnings of the following kind:
error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
The code lines GCC warns about are the following:
- src/protocol.c line 494: if(rtOpts->masterRefreshInterval > 9 );
- src/dep/servo.c line 896: if(rtOpts->servoDtMethod == DT_CONSTANT);
- src/dep/iniparser/iniparser.c line 528: if(sscanf(entry,":%[^:]:",section)>0);
- src/dep/iniparser/iniparser.c line 530: if(sscanf(entry,"%[^:]:",section)>0);
Note the semicolons at the end of each line.
Seen on ptpd version 2.3.0.
Thanks for the bug report - we really need testers :)
Thanks for the fix in [r444]. Perfect!
Regards,
Fredrik
Related
Commit: [r444]