I have the following code
- Code: Select all
Session session(_sessionFactory.create());
session << "DROP TABLE IF EXISTS cep_schema_metadata", now;
it compiles and works fine.
But, when I process it to the C++ code analyzer Flexelint, I am getting the following. The line 149 is the second one of my snippet
96 session << "DROP TABLE IF EXISTS cep_schema_metadata", now;
97 CEP/Data/src/SQLiteDataStoreService.cpp 149 Info 1793: While calling
98 'Poco::Data::Statement::operator,(void (*)(Poco::Data::Statement &))':
99 Initializing the implicit object parameter 'Poco::Data::Statement &' (a
100 non-const reference) with a non-lvalue (a temporary object of type
101 'Poco::Data::Statement')
102 CEP/Data/src/SQLiteDataStoreService.cpp 149 Warning 534: Ignoring return
103 value of function 'Poco::Data::Statement::operator,(void
104 (*)(Poco::Data::Statement &))' (compare with line 161, file
105 Data/include/Poco/Data/Statement.h)
106 Data/include/Poco/Data/Statement.h 161 Info 830: Location cited in prior
107 message
What do you think of this message?
Has Poco been "linted"?
Thanks!





