diff options
author | Philip Rauwolf <rauwolf@itestra.de> | 2013-02-14 10:32:25 +0100 |
---|---|---|
committer | Philip Rauwolf <rauwolf@itestra.de> | 2013-02-14 10:32:25 +0100 |
commit | 0b125de4bb9c4eaefa2e9b39cc5c238b4fd07b6e (patch) | |
tree | 0641423b2f2807180dda21ae750eddf2e945b969 | |
parent | 7a0e6ce52432f2c88c9f56bae9a550655db79681 (diff) | |
download | genivi-common-api-runtime-0b125de4bb9c4eaefa2e9b39cc5c238b4fd07b6e.tar.gz |
Eliminated warnings in MiddlewareInfo.h
-rw-r--r-- | src/CommonAPI/MiddlewareInfo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CommonAPI/MiddlewareInfo.h b/src/CommonAPI/MiddlewareInfo.h index e58ea40..3e0e4d5 100644 --- a/src/CommonAPI/MiddlewareInfo.h +++ b/src/CommonAPI/MiddlewareInfo.h @@ -23,7 +23,7 @@ inline int FNV1aHash(const char* s) { const int FNV_prime = 16777619; int hashValue = FNV_offset_basis; - for (int i = 0; i < strlen(s); i++) { + for (unsigned int i = 0; i < strlen(s); i++) { hashValue = (hashValue ^ s[i]) * FNV_prime; } return hashValue; @@ -34,14 +34,14 @@ typedef std::shared_ptr<Runtime> (*MiddlewareRuntimeLoadFunction) (); struct MiddlewareInfo { - const int middlewareId; const char* middlewareName_; - MiddlewareRuntimeLoadFunction getInstance; + const int middlewareId_; + MiddlewareRuntimeLoadFunction getInstance_; MiddlewareInfo(const char* middlewareName, MiddlewareRuntimeLoadFunction middlewareRuntimeLoadFunction): middlewareName_(middlewareName), - middlewareId(FNV1aHash(middlewareName)), - getInstance(middlewareRuntimeLoadFunction) { + middlewareId_(FNV1aHash(middlewareName)), + getInstance_(middlewareRuntimeLoadFunction) { } }; |