From 9d0e0d6fbcd0fe91431548a539c0269c6ab4c053 Mon Sep 17 00:00:00 2001 From: dhewg Date: Thu, 1 Dec 2011 00:18:25 +0100 Subject: [PATCH] Fix -Wsequence-point warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit operation on ‘((idFileSystemLocal*)this)->idFileSystemLocal::dir_cache_index’ may be undefined --- neo/framework/FileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/framework/FileSystem.cpp b/neo/framework/FileSystem.cpp index f25cb813..ac05201c 100644 --- a/neo/framework/FileSystem.cpp +++ b/neo/framework/FileSystem.cpp @@ -1874,7 +1874,7 @@ int idFileSystemLocal::ListOSFiles( const char *directory, const char *extension // push a new entry dir_cache[dir_cache_index].Init( directory, extension, list ); - dir_cache_index = (++dir_cache_index) % MAX_CACHED_DIRS; + dir_cache_index = (dir_cache_index + 1) % MAX_CACHED_DIRS; if ( dir_cache_count < MAX_CACHED_DIRS ) { dir_cache_count++; }