[FFmpeg-devel] [PATCH] doc/developper: always use braces for statements

Nicolas George george at nsup.org
Tue Aug 6 23:51:24 EEST 2019


Tomas Härdin (12019-08-06):
> I think they should. See 

Documenting the coding standard and changing it are different matters.

> https://www.imperialviolet.org/2014/02/22/applebug.html

test_warn.c: In function ‘test’:
test_warn.c:6:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (x == y)
     ^~
test_warn.c:8:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
         return -1;
         ^~~~~~

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190806/d2c345ad/attachment.sig>


More information about the ffmpeg-devel mailing list