]> git.mxchange.org Git - simgear.git/commitdiff
XCode warning fixes.
authorJames Turner <zakalawe@mac.com>
Sat, 22 Jun 2013 15:15:41 +0000 (16:15 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 22 Jun 2013 15:15:41 +0000 (16:15 +0100)
simgear/misc/tabbed_values.cxx
simgear/misc/tabbed_values.hxx
simgear/package/unzip.c
simgear/sound/sample_queue.hxx

index 07ed20631b3dfdd334436d7dc59dad17818cdce5..5fa5f6ecf4355c8ddcfd2cc2e5f68140200c8c59 100644 (file)
@@ -26,8 +26,7 @@
 #include "tabbed_values.hxx"
 
 
-SGTabbedValues::SGTabbedValues(const char *line) :
-       _line(line)
+SGTabbedValues::SGTabbedValues(const char *line)
 {
        assert(line);
        _fields.push_back(const_cast<char*>(line));
index 146ba36834e69985006c92731f8a273e21da1fce..a95cf7d1f93579d77f294060fc39d2c2ecd70a93 100644 (file)
@@ -45,8 +45,6 @@ public:
        long getLongAt(const unsigned int) const;
 private:
        const char* fieldAt(const unsigned int offset) const;
-
-       const char* _line;
        
        /** this is first character of each field, if the field is empty
        it will be the tab character. It is lazily built as needed, so
index 83ed5ec91d884c1f3478a17d0d2322ec2a06ca02..23f19ff536509516f873937c8e13d2ad0b1afa37 100755 (executable)
@@ -1292,7 +1292,7 @@ extern int ZEXPORT unzReadCurrentFile  (file, buf, len)
         return UNZ_PARAMERROR;
 
 
-    if ((pfile_in_zip_read_info->read_buffer == NULL))
+    if (pfile_in_zip_read_info->read_buffer == NULL)
         return UNZ_END_OF_LIST_OF_FILE;
     if (len==0)
         return 0;
index 781aaed50749dc0980e7e3ca529962d8b92a78ff..2b11393a97f8120d5ada97a047b05f601f2d2fd0 100644 (file)
@@ -91,7 +91,6 @@ public:
 private:
     std::string _refname;      // sample name
     std::vector<unsigned int> _buffers;
-    unsigned int _buffer;
 
     bool _playing;