Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when compiling on Pi #7

Open
pzl opened this issue Nov 16, 2014 · 0 comments
Open

Warnings when compiling on Pi #7

pzl opened this issue Nov 16, 2014 · 0 comments
Labels
Milestone

Comments

@pzl
Copy link
Owner

pzl commented Nov 16, 2014

GCC info

gcc --version
gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Output

make
gcc -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -ftrapv -fPIC -DPI -Os -std=gnu99 -pedantic -I. -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -c -o build/windowing_pi.o src/windowing_pi.c -shared -Wl,-soname,libovg.so.0 -L/opt/vc/lib -s -lbcm_host -lEGL -lGLESv2
In file included from /opt/vc/include/interface/vcos/vcos.h:139:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from src/windowing_pi.c:4:
/opt/vc/include/interface/vcos/vcos_logging.h:225:39: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
 #  define _VCOS_LOG_X(cat, _level, fmt...)   do { if (vcos_is_log_enabled(cat,_level)) vcos_log_impl(cat,_level,fmt); } while (0)
                                       ^
In file included from /opt/vc/include/interface/vmcs_host/vc_tvservice_defs.h:37:0,
                 from /opt/vc/include/interface/vmcs_host/vc_tvservice.h:40,
                 from /opt/vc/include/bcm_host.h:47,
                 from src/windowing_pi.c:6:
/opt/vc/include/interface/vmcs_host/vc_sdtv.h:42:33: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
    SDTV_COLOUR_FORCE_32BIT    = 0x80000000
                                 ^
/opt/vc/include/interface/vmcs_host/vc_sdtv.h:61:28: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
    SDTV_MODE_FORCE_32BIT = 0x80000000
                            ^
/opt/vc/include/interface/vmcs_host/vc_sdtv.h:72:29: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
    SDTV_ASPECTFORCE_32BIT = 0x80000000
                             ^
/opt/vc/include/interface/vmcs_host/vc_sdtv.h:101:26: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
    SDTV_CP_FORCE_32BIT = 0x80000000
                          ^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from src/windowing_pi.c:4:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function 'vcos_timer_delete' declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function 'vcos_timer_reset' declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function 'vcos_timer_cancel' declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function 'vcos_timer_set' declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function 'vcos_timer_create' declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from src/windowing_pi.c:4:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function 'vcos_thread_resume' declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function 'vcos_thread_running' declared but never defined
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function 'vcos_change_preemption' declared but never defined
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function 'vcos_thread_relinquish' declared but never defined
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function 'vcos_thread_get_affinity' declared but never defined
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from src/windowing_pi.c:4:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function 'vcos_timer_delete' declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function 'vcos_timer_reset' declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function 'vcos_timer_cancel' declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function 'vcos_timer_set' declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function 'vcos_timer_create' declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from src/windowing_pi.c:4:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function 'vcos_thread_resume' declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function 'vcos_thread_running' declared but never defined
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function 'vcos_change_preemption' declared but never defined
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function 'vcos_thread_relinquish' declared but never defined
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function 'vcos_thread_get_affinity' declared but never defined
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
ar rcs libovg.a build/transform.o build/utility.o build/basic_shapes.o build/font.o build/paint.o build/windowing_pi.o
gcc -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -ftrapv -fPIC -DPI -Os -std=gnu99 -pedantic -I. -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -shared -Wl,-soname,libovg.so.0 -L/opt/vc/lib -s -o libovg.so.0.0.1 build/transform.o build/utility.o build/basic_shapes.o build/font.o build/paint.o build/windowing_pi.o -lbcm_host -lEGL -lGLESv2
@pzl pzl added the Pi label Nov 16, 2014
@pzl pzl added this to the 1.0 milestone Nov 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant