<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thaim</author_name>
  <author_url>https://blog.hatena.ne.jp/thaim/</author_url>
  <blog_title>出力を入力へ</blog_title>
  <blog_url>https://thaim.hatenablog.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>C言語</anon>
  </categories>
  <description>いまさらながら知ったこと。C言語プログラミング時にコンパイルオプションにWallを指定するなど、 利用していない引数がある場合に警告を出している。 通常はこれば便利だけども、どうしても避けられない場合もある。これを解決する方法として、-Wno-unused-parameterを使うことで 利用していない引数があっても警告を出さないこができるが、 コンパイル単位でしか指定できないという欠点がある。関数ごとに解決する方法として以下の方法がある。 void func(int x) { (void) x; .... }もしくは、もっとわかりやすく #define UNUSED(x) ((void)x)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthaim.hatenablog.jp%2Fentry%2F2013%2F09%2F14%2F031921&quot; title=&quot;引数を利用しない場合でもWarningを出さない - 出力を入力へ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-09-14 03:19:21</published>
  <title>引数を利用しない場合でもWarningを出さない</title>
  <type>rich</type>
  <url>https://thaim.hatenablog.jp/entry/2013/09/14/031921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
