Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
目的
ビルド時に毎回以下のようなD9025警告が出ているのを出ないようにします。
この事象は以前から sakura-editor/management-forum#24 で検討していた
CPPTaskのバグと思われる事象
と同じなので、警告が出ている原因等の詳しいことは issue を見てください。vs2019で対策されることを期待していましたが、直らなかったのでこちら(=利用側)で対策して警告出さないようにしてしまいたいと考えています。
対処内容
sakura.vcxproj内の以下のアセンブラ出力オプションを変更します。
AdditionalOptions
/FAsu /Fa$(IntDir)
/FAsu /Fa$(IntDir)
AssemblerOutput
AssemblyAndSourceCode
/FAs /Fa$(IntDir)
UseUnicodeForAssemblerListing
true
/FAu
AdditionalOptions
の変更前を (なし) としているのは、「アセンブラ関係のオプション指定はない」という意味です。確認方法
PRのブランチをビルドして警告の有無を確認できればOKと考えています。
1.この PR 適用前のブランチ(master)をcheckoutする
1.この PR 適用前のブランチ(master)をビルドする ⇒ 上記警告が出力される
1.この PR のブランチをcheckoutする
1.この PR のブランチをビルドする ⇒ 上記警告が出力されなくなっている