{"type":"rich","height":"190","version":"1.0","categories":["ruby","rubyext"],"published":"2010-10-13 19:20:00","blog_url":"https://nyaxt.hatenadiary.org/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnyaxt.hatenadiary.org%2Fentry%2F20101013%2F1286965200\" title=\" mkmf.rb\u3067$CFLAGS &lt;&lt; &#39;-Werror&#39;\u3092\u3064\u304b\u3046 - nyaxt\u306ePC\u4f5c\u696d\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/nyaxt/","url":"https://nyaxt.hatenadiary.org/entry/20101013/1286965200","title":" mkmf.rb\u3067$CFLAGS << '-Werror'\u3092\u3064\u304b\u3046","blog_title":"nyaxt\u306ePC\u4f5c\u696d\u30ed\u30b0","width":"100%","provider_name":"Hatena Blog","description":"try_func\u304cgcc warning\u51fa\u3059\u306e\u3092\u907f\u3051\u308b\u3071\u3063\u3061 require 'mkmf' # replace f**king try_func def try_func(func, libs, headers = nil, &b) headers = cpp_include(headers) try_link(<<\"SRC\", libs, &b) or #{headers} /*top*/ #{MAIN_DOES_NOTHING} int t() { void ((*volatile p)()); p = (void ((*)()))#{func}; return 0; } SRC try_\u2026","image_url":null,"author_name":"nyaxt"}