I am working with Chromium Embedded Framework. I put the following in the main function.
CefRefPtr<CefRequest> cef;
CefRequest::ReferrerPolicy origin = origin;
cef->SetReferrer("www.google.com",origin );
During the make process I receive the following errors:
error: ‘origin’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cef->SetReferrer("www.google.com",origin );
^
the method:
virtual void SetReferrer(const CefString& referrer_url, ReferrerPolicy policy) =0;
Why is origin not being initialized and how can I initialize it?
Thanks