mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 16:20:50 +00:00
fix "Program returns random data in a function" GCC warning
This commit is contained in:
parent
41c5605102
commit
a523f686fc
@ -93,6 +93,7 @@ template<typename ImageTraits>
|
||||
static inline bool color_equal(color_t c1, color_t c2, int tolerance)
|
||||
{
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color comparison");
|
||||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
@ -39,6 +39,7 @@ namespace {
|
||||
template<typename ImageTraits, int color_depth>
|
||||
int convert_color_to_allegro(color_t color, const Palette* palette) {
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color conversion");
|
||||
return 0;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
@ -42,6 +42,7 @@ namespace {
|
||||
template<typename ImageTraits, she::SurfaceFormat format>
|
||||
uint32_t convert_color_to_surface(color_t color, const Palette* palette, const she::SurfaceFormatData* fd) {
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color conversion");
|
||||
return 0;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user