intel / gmmlib

Other
158 stars 87 forks source link

GmmUmdTranslationTable initialize NodesPerTable in order #80

Closed edwarddavidbaker closed 3 years ago

edwarddavidbaker commented 3 years ago

Hi, When building 20.4.1 on Chrome OS the following warnings are observed.

Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:456:13: warning: field 'NodesPerTable' will be initialized after field 'TTType' [-Wreorder-ctor]
            NodesPerTable(Size / PAGE_SIZE),
            ^
edwarddavidbaker commented 3 years ago

Fixed in https://github.com/intel/gmmlib/commit/44f6c4669d583ec5002f2af94f6e66f7ae2bb504 .