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

Get rid of warnings in nullable.hpp #3617

Merged
merged 1 commit into from
May 4, 2022
Merged

Get rid of warnings in nullable.hpp #3617

merged 1 commit into from
May 4, 2022

Commits on May 4, 2022

  1. Get rid of warnings in nullable.hpp

    I keep getting warnings like below
    
    ```
    Severity	Code	Description	Project	File	Line	Suppression State
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::BlobImmutabilityPolicy>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::EncryptionKey>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::AccessTier>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::ArchiveStatus>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::CopyStatus>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::LeaseDurationType>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::LeaseState>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::LeaseStatus>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::Models::RehydratePriority>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<__int64>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<bool>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<int>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<std::vector<unsigned char,std::allocator<unsigned char> > >::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	61	
    Warning	C26495	Variable 'Azure::Nullable<Azure::Storage::Blobs::EncryptionKey>::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	75	
    Warning	C26495	Variable 'Azure::Nullable<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::<unnamed-tag>::m_value' is uninitialized. Always initialize a member variable (type.6).	datamovement-getting-started	C:\Users\Jamis\Desktop\azure-sdk-for-cpp\sdk\core\azure-core\inc\azure\core\nullable.hpp	75	
    ```
    
    This PR fixes the issue.
    Jinming-Hu authored May 4, 2022
    Configuration menu
    Copy the full SHA
    c7ad644 View commit details
    Browse the repository at this point in the history