Re #1994 (misc): Fixed various warnings when using gcc/clang
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5653 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
9b1eaa7903
commit
d2faa6d17a
|
@ -241,7 +241,7 @@ static void pjsuaOnAppConfigCb(pjsua_app_config *cfg)
|
|||
|
||||
if (dev_ori == prev_ori) return;
|
||||
|
||||
NSLog(@"Device orientation changed: %ld", (prev_ori = dev_ori));
|
||||
NSLog(@"Device orientation changed: %d", (prev_ori = dev_ori));
|
||||
|
||||
if (dev_ori >= UIDeviceOrientationPortrait &&
|
||||
dev_ori <= UIDeviceOrientationLandscapeRight)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402
|
||||
# pragma GCC diagnostic ignored "-Wpragmas"
|
||||
# pragma GCC diagnostic ignored "-Wunused-const-variable"
|
||||
# pragma GCC diagnostic ignored "-Wshift-negative-value"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402
|
||||
# pragma GCC diagnostic ignored "-Wpragmas"
|
||||
# pragma GCC diagnostic ignored "-Wunknown-warning-option"
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue