Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilmisc: Fix build error with GCC 10
From when this was introduced (2737de7) it wasn't commented why it was done this way. Clean it up. utilmisc.C:31:6: error: ‘bool Util::isSimics()’ specifies less restrictive attribute than its target ‘bool Util::__isSimicsRunning()’: ‘nothrow’ [-Werror=missing-attributes] 31 | bool isSimics() __attribute__((alias("__isSimicsRunning"))); | ^~~~~~~~ utilmisc.C:34:6: note: ‘bool Util::isSimics()’ target declared here 34 | bool __isSimicsRunning() | ^~~~~~~~~~~~~~~~~ utilmisc.C:48:6: error: ‘bool Util::isQmeModelEnabled()’ specifies less restrictive attribute than its target ‘bool Util::__isQmeEnabled()’: ‘nothrow’ [-Werror=missing-attributes] 48 | bool isQmeModelEnabled() __attribute__((alias("__isQmeEnabled"))); | ^~~~~~~~~~~~~~~~~ utilmisc.C:51:6: note: ‘bool Util::isQmeModelEnabled()’ target declared here 51 | bool __isQmeEnabled() | ^~~~~~~~~~~~~~ Fixes: #205 Change-Id: Id5291022b09dca6789175d69e54a30d55f1bde13 Signed-off-by: Joel Stanley <[email protected]> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/128902 Tested-by: Jenkins OP Build CI <[email protected]> Tested-by: Jenkins Server <[email protected]> Tested-by: Jenkins Combined Simics CI <[email protected]> Reviewed-by: Zachary Clark <[email protected]> Tested-by: FSP CI Jenkins <[email protected]> Tested-by: Jenkins OP HW <[email protected]> Tested-by: Hostboot CI <[email protected]> Reviewed-by: Daniel M Crowell <[email protected]> Reviewed-by: Nick Bofferding <[email protected]>
- Loading branch information