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:
Sauw Ming 2017-09-20 02:57:26 +00:00
parent 9b1eaa7903
commit d2faa6d17a
3 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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