Skip to content

Instantly share code, notes, and snippets.

@epall
Created November 3, 2011 15:42
Show Gist options
  • Save epall/1336812 to your computer and use it in GitHub Desktop.
Save epall/1336812 to your computer and use it in GitHub Desktop.
cc1plus: warnings being treated as errors
vm/capi/object.cpp: In function ‘void rb_error_frozen(const char*)’:
vm/capi/object.cpp:18: warning: unused variable ‘env’
Error: gcc -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -ggdb3 -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -DHAS_EXECINFO -DHAS_READLINE -mdynamic-no-pic -DNDEBUG -D_GNU_SOURCE -fno-common -Ivendor/llvm/include -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/onig -Ivendor/libtommath -I/usr/local/include -I/opt/local/include -c -o vm/capi/artifacts/object.cpp.o vm/capi/object.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment