Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wulczer
on Aug 7, 2011
|
parent
|
context
|
favorite
| on:
Clang now builds Postgres without additional warni...
Yep, you can disable individual warnings with pragmas (
http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
) so if I add
#pragma GCC diagnostic ignored "-Wunused-parameter"
to the C file, I get warningless compilation even with -Wextra. you can also do push/pop to store/restore the warnings reporting options.
palish
on Aug 7, 2011
[–]
Thank you again!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: