зеркало из https://github.com/mozilla/gecko-dev.git
Bug 605179. qcms: revert build warning fixes. r=ehsan
0ec22e77aefc fixed some build warnings that no longer happen because pedantic is disabled.
This commit is contained in:
Родитель
7820957fa6
Коммит
1eac9663aa
|
@ -1,4 +1,3 @@
|
|||
/*
|
||||
// qcms
|
||||
// Copyright (C) 2009 Mozilla Foundation
|
||||
// Copyright (C) 1998-2007 Marti Maria
|
||||
|
@ -20,7 +19,6 @@
|
|||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
|
|
|
@ -94,7 +94,7 @@ typedef enum {
|
|||
QCMS_INTENT_ABSOLUTE_COLORIMETRIC = 3
|
||||
} qcms_intent;
|
||||
|
||||
/* XXX: I don't really like the _DATA_ prefix */
|
||||
//XXX: I don't really like the _DATA_ prefix
|
||||
typedef enum {
|
||||
QCMS_DATA_RGB_8,
|
||||
QCMS_DATA_RGBA_8,
|
||||
|
|
|
@ -113,7 +113,7 @@ struct tag_value {
|
|||
} XYZNumber;
|
||||
} XYZType;
|
||||
};
|
||||
}; /* I guess we need to pack this? */
|
||||
}; // I guess we need to pack this?
|
||||
#endif
|
||||
|
||||
#define RGB_SIGNATURE 0x52474220
|
||||
|
|
|
@ -30,7 +30,7 @@ typedef PRUptrdiff uintptr_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#else /* MOZ_QCMS */
|
||||
#else // MOZ_QCMS
|
||||
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#define IS_LITTLE_ENDIAN
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*
|
||||
// qcms
|
||||
// Copyright (C) 2009 Mozilla Corporation
|
||||
// Copyright (C) 1998-2007 Marti Maria
|
||||
|
@ -20,7 +19,6 @@
|
|||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
@ -662,8 +660,8 @@ static float clamp_float(float a)
|
|||
{
|
||||
if (a > 1.)
|
||||
return 1.;
|
||||
else if (a < 0)
|
||||
return 0;
|
||||
else if (a < 0.)
|
||||
return 0.;
|
||||
else
|
||||
return a;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче