Browse Source

Fixed some minor compiler warnings

Alex Szpakowski 11 years ago
parent
commit
55514720a6

+ 1 - 1
src/common/Data.h

@@ -38,7 +38,7 @@ public:
 	/**
 	 * Destructor.
 	 **/
-	virtual ~Data() {};
+	virtual ~Data() {}
 
 	/**
 	 * Gets a pointer to the data. This pointer will obviously not

+ 1 - 1
src/common/Vector.cpp

@@ -23,4 +23,4 @@
 namespace love
 {
 // Implementation in header.
-}
+}

+ 1 - 1
src/common/b64.h

@@ -38,4 +38,4 @@ char *b64_decode(const char *src, int slen, int &size);
 
 } // love
 
-#endif // LOVE_B64_H
+#endif // LOVE_B64_H

+ 1 - 1
src/common/utf8.h

@@ -45,4 +45,4 @@ void replace_char(std::string &str, char find, char replace);
 
 } // love
 
-#endif // LOVE_WINDOWS
+#endif // LOVE_WINDOWS

+ 1 - 1
src/libraries/ddsparse/ddsparse.h

@@ -60,7 +60,7 @@ struct Image
 	const uint8_t *data;
 
 	Image() : width(0), height(0), dataSize(0), data(0)
-	{};
+	{}
 };
 
 /**

+ 1 - 1
src/modules/audio/Audio.h

@@ -67,7 +67,7 @@ public:
 	/**
 	 * Destructor.
 	 **/
-	virtual ~Audio() {};
+	virtual ~Audio() {}
 
 	virtual Source *newSource(love::sound::Decoder *decoder) = 0;
 	virtual Source *newSource(love::sound::SoundData *soundData) = 0;

+ 1 - 1
src/modules/font/Font.h

@@ -54,4 +54,4 @@ public:
 } // font
 } // love
 
-#endif // LOVE_FONT_FONT_H
+#endif // LOVE_FONT_FONT_H

+ 1 - 1
src/modules/font/ImageRasterizer.h

@@ -79,4 +79,4 @@ private:
 } // font
 } // love
 
-#endif // LOVE_FONT_IMAGE_RASTERIZER_H
+#endif // LOVE_FONT_IMAGE_RASTERIZER_H

+ 1 - 1
src/modules/font/Rasterizer.cpp

@@ -96,4 +96,4 @@ bool Rasterizer::hasGlyphs(const std::string &text) const
 }
 
 } // font
-} // love
+} // love

+ 1 - 1
src/modules/font/Rasterizer.h

@@ -114,4 +114,4 @@ protected:
 } // font
 } // love
 
-#endif // LOVE_FONT_RASTERIZER_H
+#endif // LOVE_FONT_RASTERIZER_H

+ 1 - 1
src/modules/font/freetype/TrueTypeRasterizer.cpp

@@ -146,4 +146,4 @@ bool TrueTypeRasterizer::hasGlyph(uint32 glyph) const
 
 } // freetype
 } // font
-} // love
+} // love

+ 1 - 1
src/modules/graphics/opengl/Font.h

@@ -175,7 +175,7 @@ private:
 				return texture < other.texture;
 			else
 				return startvertex < other.startvertex;
-		};
+		}
 	};
 
 	bool initializeTexture(GLenum format);

+ 1 - 1
src/modules/graphics/opengl/ParticleSystem.h

@@ -65,7 +65,7 @@ public:
 		INSERT_MODE_TOP,
 		INSERT_MODE_BOTTOM,
 		INSERT_MODE_RANDOM,
-		INSERT_MODE_MAX_ENUM,
+		INSERT_MODE_MAX_ENUM
 	};
 
 	/**

+ 2 - 2
src/modules/image/Image.h

@@ -47,7 +47,7 @@ public:
 	/**
 	 * Destructor.
 	 **/
-	virtual ~Image() {};
+	virtual ~Image() {}
 
 	/**
 	 * Creates new ImageData from FileData.
@@ -93,4 +93,4 @@ public:
 } // image
 } // love
 
-#endif // LOVE_IMAGE_IMAGE_H
+#endif // LOVE_IMAGE_IMAGE_H

+ 1 - 1
src/modules/mouse/Mouse.h

@@ -49,7 +49,7 @@ public:
 		BUTTON_MAX_ENUM
 	};
 
-	virtual ~Mouse() {};
+	virtual ~Mouse() {}
 
 	virtual Cursor *newCursor(love::image::ImageData *data, int hotx, int hoty) = 0;
 	virtual Cursor *getSystemCursor(Cursor::SystemCursor cursortype) = 0;

+ 2 - 2
src/modules/mouse/wrap_Cursor.cpp

@@ -51,7 +51,7 @@ int w_Cursor_getType(lua_State *L)
 
 	lua_pushstring(L, typestr);
 	return 1;
-};
+}
 
 static const luaL_Reg functions[] =
 {
@@ -65,4 +65,4 @@ extern "C" int luaopen_cursor(lua_State *L)
 }
 
 } // mouse
-} // love
+} // love

+ 1 - 1
src/modules/physics/box2d/wrap_MotorJoint.cpp

@@ -140,4 +140,4 @@ extern "C" int luaopen_motorjoint(lua_State *L)
 
 } // box2d
 } // phyics
-} // love
+} // love

+ 1 - 1
src/modules/sound/Decoder.h

@@ -67,7 +67,7 @@ public:
 	/**
 	 * Destructor. Should free internal buffer.
 	 **/
-	virtual ~Decoder() {};
+	virtual ~Decoder() {}
 
 	/**
 	 * Decodes the next chunk of the music stream, this will usually be

+ 1 - 1
src/modules/sound/lullaby/FLACDecoder.cpp

@@ -183,4 +183,4 @@ void FLACDecoder::error_callback(FLAC__StreamDecoderErrorStatus status)
 } // sound
 } // love
 
-#endif // 0
+#endif // 0

+ 1 - 1
src/modules/sound/lullaby/GmeDecoder.cpp

@@ -146,4 +146,4 @@ int GmeDecoder::getBitDepth() const
 } // sound
 } // love
 
-#endif // LOVE_SUPPORT_GME
+#endif // LOVE_SUPPORT_GME

+ 1 - 1
src/modules/system/wrap_System.cpp

@@ -109,4 +109,4 @@ extern "C" int luaopen_love_system(lua_State *L)
 }
 
 } // system
-} // love
+} // love