Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows warnings (C4554, C4018) and mark error message constants as constexpr (C26814) #8497

Merged

Conversation

Noremos
Copy link
Contributor

@Noremos Noremos commented Apr 2, 2025

This is a replacement for my previous PR: /pull/8360.
I apologize for having to reopen it. The code is the same except for corrections addressing the last two issues from the original PR.

const ISC_STATUS isc_arg_warning = 18; // warning argument
const ISC_STATUS isc_arg_sql_state = 19; // SQLSTATE
#if __cplusplus >= 201703L // C++17 or later
#define STATUS_CONST inline constexpr ISC_STATUS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is public header, so I think some FB-specific prefix in the macro is good.
Also, it should be good to undefine it after usage.

@dyemanov dyemanov merged commit 1175a17 into FirebirdSQL:master Apr 8, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants