silence unused directive warning on mingw

Change-Id: I48ba4da4c9b56ae28d4825bbce5235c34470422d
Merge topic 'fix_mingw_warning' into master

83cea8c5 silence unused directive warning on mingw