Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created December 20, 2012 01:07
Show Gist options
  • Save thoughtpolice/4342195 to your computer and use it in GitHub Desktop.
Save thoughtpolice/4342195 to your computer and use it in GitHub Desktop.
clang diagnostics
/home/a/code/qemu/i386-dis.c:5748:19: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%es:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/home/a/code/qemu/i386-dis.c:5748:19: note: use array indexing to silence this warning
oappend ("%es:" + intel_syntax);
^
& [ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment