On 22 July 2016, Wink Saville <
wi...@saville.com> wrote:
> I'm doing something wrong, I tried to do the following in my .vimrc:
>
> let g:syntastic_c_compiler = 'clang'
That's the right (and only) way to do it. Not sure what else to
tell you without logs.
> But it didn't work because I'm getting an error only gcc detects
>
> offset of packed bit-field 'traffic_class' has changed in GCC 4.4
>
> I can suppress that message using
>
> let g:syntastic_c_compiler_options = '-Wno-packed-bitfield-compat'
>
> So I seem to be doing something right.
>
> But I'd rather have syntastic use clang which generally outputs better
> error messages.
To see how syntastic runs the checkers enable debugging and read the
logs (see ":h syntastic-debug" in recent versions of syntastic).
To change how syntastic runs the checkers set the various checker
options.
Please note that syntastic will still name the checker "gcc", even
when it's actually running "clang".
/lcd