8000 Resolve some compiler warnings by mrylov · Pull Request #37 · SAP/odbc-cpp-wrapper · GitHub
[go: up one dir, main page]

Skip to content

Resolve some compiler warnings#37

Merged
stefanuhrig merged 1 commit intoSAP:masterfrom
mrylov:master
Jun 13, 2022
Merged

Resolve some compiler warnings#37
stefanuhrig merged 1 commit intoSAP:masterfrom
mrylov:master

Conversation

@mrylov
Copy link
Contributor
@mrylov mrylov commented Jun 13, 2022

This PR resolves the following compiler warnings:

../odbc/Types.h:321:65: warning: extra ';' after member function definition [-Wextra-semi]
const char* unscaledValue() const { return value_.c_str(); };
^
../odbc/Exception.h:51:25: warning: 'what' overrides a member function but is not marked 'override' [-Wsuggest-override]
virtual const char* what() const noexcept;
^
../SDKs/MacOSX12.3.sdk/usr/include/c++/v1/exception:106:25: note: overridden virtual function is here
virtual const char* what() const NOEXCEPT;
^
../odbc/RefCounted.h:59:24: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
Reference() : ptr
(0) {}
^ nullptr
../odbc/RefCounted.h:136:42: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
bool isNull() const { return ptr_ == 0; }
^ nullptr

@stefanuhrig stefanuhrig merged commit fc2033a into SAP:master Jun 13, 2022
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.

2 participants

0