intel / gmmlib

Other
158 stars 86 forks source link

Initialize PageTable NodesPerTable in order #81

Closed edwarddavidbaker closed 3 years ago

edwarddavidbaker commented 3 years ago

This commit addresses the following warning. Closes #80.

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

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