Print Page | Close Window

new warning with VS2022 17.2.0

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24284
Printed Date: 19 April 2024 at 6:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: new warning with VS2022 17.2.0
Posted By: alindeman
Subject: new warning with VS2022 17.2.0
Date Posted: 13 May 2022 at 8:27am
Just updated from VS2022 17.1.6 to 17.2.0.  Did not have this issue with 17.1.6

Have "Treat Warnings as Errors" set to True and "Warning Level" of 4.

Now getting:

XTToolkit\CommandBars\XTPPaintManager.h(160,1): warning C5257: 'XTPPrimitiveSymbol': enumeration was previously declared without a fixed underlying type

Warning is so new, at least as of the time I am writing this post, C5254 is the maximum warning number according to Microsoft:

https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warnings-c4800-through-c4999?view=msvc-170" rel="nofollow - Compiler warnings C4800 Through C5999 | Microsoft Docs

I assume in XPTDrawHelpers.h, I need to change

enum XTPPrimitiveSymbol
{

to
enum XTPPrimitiveSymbol: int
{

Thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net