Changeset 94e9139 in tol


Ignore:
Timestamp:
Jan 10, 2015, 2:59:20 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
afbee11
Parents:
ce19aca
Message:

warning: passing NULL to non-pointer argument 1 of ‘void google::dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>::set_empty_key(const key_type&) [with Key = int; T = BFileDesc*; HashFcn = std::tr1::hash<int>; EqualKey = std::equal_to<int>; Alloc = google::libc_allocator_with_realloc<std::pair<const int, BFileDesc*> >; google::dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>::key_type = int]’ [-Wconversion-null]

#define SetEmptyKey(HASH_MAP,KEY_) HASH_MAP.set_empty_key (KEY_)

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6423 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bdb/filehandle.cpp

    rce19aca r94e9139  
    5656    fileHandle_ = new BFileHashByHandle;
    5757    BFileHashByHandle& fh = *fileHandle_;
    58     SetEmptyKey  (fh, NULL);
     58    SetEmptyKey  (fh, 0);
    5959    SetDeletedKey(fh, -1);
    6060  }
Note: See TracChangeset for help on using the changeset viewer.