タグ

gccに関するkindaのブックマーク (2)

  • deprecated (廃止予定)のワーニングを非表示にする方法 - 強火で進め

    位置情報を取得するプログラムを書く時に使用する locationServicesEnabled はiOS4.0からはクラスメソッドですがそれ以前はプロパティだったりします。 そのため、クラスメソッドの locationServicesEnabled が存在するかどうかをチェックして存在しない場合はプロパティにアクセスする様に記述します。 しかし、その様に記述するとこの様な「それって廃止予定のプロパティですよ」とワーニングが発生します。 warning: 'locationServicesEnabled' is deprecated [-Wdeprecated-declarations,8]この様な場合はちゃんと分かっている上で記述しているのでワーニングを非表示にしたい所です。 調べてみた所、以下の様な #pragma を該当する部分の上下に記述するとワーニングのチェックを行わない様に出来る

    deprecated (廃止予定)のワーニングを非表示にする方法 - 強火で進め
  • ARM GCC Inline Assembler Cookbook

    About this document The GNU C compiler for ARM RISC processors offers, to embed assembly language code into C programs. This cool feature may be used for manually optimizing time critical parts of the software or to use specific processor instruction, which are not available in the C language. It's assumed, that you are familiar with writing ARM assembler programs, because this is not an ARM assem

  • 1