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

Compilation errors GCC 5.4.0/Glibc #3

Open
piwats opened this issue Oct 20, 2016 · 3 comments
Open

Compilation errors GCC 5.4.0/Glibc #3

piwats opened this issue Oct 20, 2016 · 3 comments

Comments

@piwats
Copy link

piwats commented Oct 20, 2016

Hello,

I am writing an ebuild for Gentoo.

When the compilation of the libs is complete, I have a pretty list of warnings, that I would like to get rid of.

Compilation is done directly on the c2.

These are:

* adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-declaration]
 * adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:101:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:146:13: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:344:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:508:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:644:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:662:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:89:28: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
 * adec-ffmpeg-mgt.c:258:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:355:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:364:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:480:11: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:1288:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:29:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:85:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:96:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:100:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:105:5: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:108:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration]
 * feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration]
 * feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration]
 * feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration]
 * adec_read.c:48:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-declaration]
 * adec_read.c:53:17: warning: implicit declaration of function 'getpagesize' [-Wimplicit-function-declaration]
 * adec_read.c:93:3: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * audio_out/alsa-out.c:538:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/alsa-out.c:648:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dts_enc.c:38:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * dts_enc.c:65:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * dts_enc.c:67:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration]
 * dts_enc.c:102:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration]
 * dts_enc.c:166:16: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dts_enc.c:171:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaration]
 * audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
 * audio_out/alsa-out-raw.c:426:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/alsa-out-raw.c:430:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-declaration]
 * adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:101:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:146:13: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:344:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:508:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:644:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-declaration]
 * adec-internal-mgt.c:662:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:89:28: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
 * adec-ffmpeg-mgt.c:258:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:355:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:364:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:480:11: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-ffmpeg-mgt.c:1288:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:29:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:85:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:96:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:100:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:105:5: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * adec-pts-mgt.c:108:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration]
 * feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration]
 * feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration]
 * feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration]
 * adec_read.c:48:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-declaration]
 * adec_read.c:53:17: warning: implicit declaration of function 'getpagesize' [-Wimplicit-function-declaration]
 * adec_read.c:93:3: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * audio_out/alsa-out.c:538:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/alsa-out.c:648:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-function-declaration]
 * audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
 * dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dts_enc.c:38:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * dts_enc.c:65:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * dts_enc.c:67:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration]
 * dts_enc.c:102:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration]
 * dts_enc.c:166:16: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * dts_enc.c:171:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaration]
 * audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
 * audio_out/alsa-out-raw.c:426:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
 * audio_out/alsa-out-raw.c:430:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
 * amconfigutils.c:30:12: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
 * amconfigutils.c:30:12: warning: incompatible implicit declaration of built-in function 'malloc'
 * amconfigutils.c:34:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
 * amconfigutils.c:34:5: warning: incompatible implicit declaration of built-in function 'free'
 * amconfigutils.c:39:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amconfigutils.c:39:15: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:50:30: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
 * amconfigutils.c:71:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amconfigutils.c:71:5: warning: incompatible implicit declaration of built-in function 'memset'
 * amconfigutils.c:86:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
 * amconfigutils.c:86:9: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:88:9: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:106:12: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:120:9: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:124:18: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
 * amconfigutils.c:124:18: warning: incompatible implicit declaration of built-in function 'strdup'
 * amconfigutils.c:125:12: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:132:24: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:144:24: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:157:5: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:162:6: warning: incompatible implicit declaration of built-in function 'free'
 * amconfigutils.c:223:12: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
 * amconfigutils.c:223:41: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 * amdisplayutils.c:41:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amdisplayutils.c:41:9: warning: incompatible implicit declaration of built-in function 'memset'
 * amdisplayutils.c:42:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * amdisplayutils.c:43:61: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amdisplayutils.c:43:61: warning: incompatible implicit declaration of built-in function 'strlen'
 * amdisplayutils.c:45:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * amdisplayutils.c:59:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * amdisplayutils.c:111:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
 * ammodule.c:32:14: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 * ammodule.c:32:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:33:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:124:5: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
 * ammodule.c:124:5: warning: incompatible implicit declaration of built-in function 'snprintf'
 * ammodule.c:31:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:32:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:31:14: warning: incompatible implicit declaration of built-in function 'printf'
 * amsysfsutils.c:30:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
 * amsysfsutils.c:30:32: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amsysfsutils.c:30:32: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:31:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * amsysfsutils.c:43:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amsysfsutils.c:43:3: warning: incompatible implicit declaration of built-in function 'memset'
 * amsysfsutils.c:44:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * amsysfsutils.c:45:16: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:64:33: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:97:33: warning: incompatible implicit declaration of built-in function 'strlen'
 * Amvideoutils.c:56:21: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
 * Amvideoutils.c:57:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * Amvideoutils.c:57:9: warning: incompatible implicit declaration of built-in function 'strlen'
 * Amvideoutils.c:86:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * Amvideoutils.c:86:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:87:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * Amvideoutils.c:88:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 * Amvideoutils.c:106:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:121:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:145:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:212:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:329:5: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * Amvideoutils.c:335:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * Amvideoutils.c:358:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-function-declaration]
 * Amvideoutils.c:456:9: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:592:13: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:619:13: warning: incompatible implicit declaration of built-in function 'memset'
 * amconfigutils.c:30:12: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
 * amconfigutils.c:30:12: warning: incompatible implicit declaration of built-in function 'malloc'
 * amconfigutils.c:34:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
 * amconfigutils.c:34:5: warning: incompatible implicit declaration of built-in function 'free'
 * amconfigutils.c:39:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amconfigutils.c:39:15: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:50:30: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
 * amconfigutils.c:71:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amconfigutils.c:71:5: warning: incompatible implicit declaration of built-in function 'memset'
 * amconfigutils.c:86:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
 * amconfigutils.c:86:9: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:88:9: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:106:12: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:120:9: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:124:18: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
 * amconfigutils.c:124:18: warning: incompatible implicit declaration of built-in function 'strdup'
 * amconfigutils.c:125:12: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:132:24: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:144:24: warning: incompatible implicit declaration of built-in function 'strlen'
 * amconfigutils.c:157:5: warning: incompatible implicit declaration of built-in function 'strcpy'
 * amconfigutils.c:162:6: warning: incompatible implicit declaration of built-in function 'free'
 * amconfigutils.c:223:12: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
 * amconfigutils.c:223:41: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 * amdisplayutils.c:41:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amdisplayutils.c:41:9: warning: incompatible implicit declaration of built-in function 'memset'
 * amdisplayutils.c:42:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * amdisplayutils.c:43:61: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amdisplayutils.c:43:61: warning: incompatible implicit declaration of built-in function 'strlen'
 * amdisplayutils.c:45:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * amdisplayutils.c:59:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
 * amdisplayutils.c:111:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
 * ammodule.c:32:14: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 * ammodule.c:32:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:33:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:124:5: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
 * ammodule.c:124:5: warning: incompatible implicit declaration of built-in function 'snprintf'
 * ammodule.c:31:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:32:14: warning: incompatible implicit declaration of built-in function 'printf'
 * ammodule.c:31:14: warning: incompatible implicit declaration of built-in function 'printf'
 * amsysfsutils.c:30:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
 * amsysfsutils.c:30:32: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * amsysfsutils.c:30:32: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:31:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * amsysfsutils.c:43:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * amsysfsutils.c:43:3: warning: incompatible implicit declaration of built-in function 'memset'
 * amsysfsutils.c:44:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * amsysfsutils.c:45:16: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:64:33: warning: incompatible implicit declaration of built-in function 'strlen'
 * amsysfsutils.c:97:33: warning: incompatible implicit declaration of built-in function 'strlen'
 * Amvideoutils.c:56:21: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
 * Amvideoutils.c:57:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 * Amvideoutils.c:57:9: warning: incompatible implicit declaration of built-in function 'strlen'
 * Amvideoutils.c:86:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * Amvideoutils.c:86:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:87:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
 * Amvideoutils.c:88:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 * Amvideoutils.c:106:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:121:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:145:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:212:5: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:329:5: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * Amvideoutils.c:335:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * Amvideoutils.c:358:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-function-declaration]
 * Amvideoutils.c:456:9: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:592:13: warning: incompatible implicit declaration of built-in function 'memset'
 * Amvideoutils.c:619:13: warning: incompatible implicit declaration of built-in function 'memset'
 * audio_ctrl.c:26:5: warning: implicit declaration of function 'audio_decode_basic_init' [-Wimplicit-function-declaration]
 * codec_ctrl.c:52:11: warning: implicit declaration of function 'codec_h_ioctl' [-Wimplicit-function-declaration]
 * codec_ctrl.c:74:20: warning: implicit declaration of function 'system_error_to_codec_error' [-Wimplicit-function-declaration]
 * codec_ctrl.c:158:9: warning: implicit declaration of function 'print_error_msg' [-Wimplicit-function-declaration]
 * codec_ctrl.c:819:13: warning: implicit declaration of function 'audio_set_avsync_threshold' [-Wimplicit-function-declaration]
 * codec_ctrl.c:826:5: warning: implicit declaration of function 'audio_basic_init' [-Wimplicit-function-declaration]
 * codec_ctrl.c:1076:65: warning: implicit declaration of function 'codec_error_msg' [-Wimplicit-function-declaration]
 * codec_ctrl.c:1250:18: warning: implicit declaration of function 'codec_h_open_rd' [-Wimplicit-function-declaration]
 * codec_ctrl.c:2410:10: warning: implicit declaration of function 'audio_get_pcm_level' [-Wimplicit-function-declaration]
 * codec_ctrl.c:2415:10: warning: implicit declaration of function 'audio_set_skip_bytes' [-Wimplicit-function-declaration]
 * codec_ctrl.c:2420:10: warning: implicit declaration of function 'audio_get_pts' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:27:19: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:96:13: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:273:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:273:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:282:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:291:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:303:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:311:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:338:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:360:5: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:383:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:388:13: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:388:13: warning: incompatible implicit declaration of built-in function 'memcpy'
 * codec_h_ctrl.c:394:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:399:13: warning: incompatible implicit declaration of built-in function 'memcpy'
 * codec_h_ctrl.c:405:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:410:13: warning: incompatible implicit declaration of built-in function 'memcpy'
 * codec_h_ctrl.c:433:9: warning: incompatible implicit declaration of built-in function 'memset'
 * codec_h_ctrl.c:522:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
 * codec_h_ctrl.c:543:9: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]

What do I wrong?

@Apokalypzx
Copy link

Well, warnings aren't errors. Warnings are a compiler's way of 'warning' that something might not work the way you (or the programmer) intend it to.

Warnings about implicit functions just means that the function being called was not declared before being used, usually declaration happens in header (*.h) files, basically calling the function is implying that it actually exists. So either the person who wrote this forgot to declare the functions before hand, they didn't include the header that has the declarations, or they just didn't care enough to. Either way, these warnings are unlikely to affect the way the code works.

If the code compiled for you and gave you the libs, then you're good to go. I guess if you want, you can create an extra header and manually declare all the functions that it gives warnings for and then include the header in all the *.c files that use the functions...but I wouldn't worry about it.

If there were a real error, the compilation wouldn't be able to continue and instead of warnings, you would see an 'error'. Also to note, there is a way to configure GCC to treat warnings as errors, but that's only if you have very strict coding requirements.

@piwats
Copy link
Author

piwats commented Oct 20, 2016

Ah,

thank you very much for the clarification.

Yes indeed, I get the libraries.

At the moment I have no means to test them, as I am in the process of writing the ebuilds for Gentoo. I just started, and aml_libs is the first 'package' to go.

I try to silence those errors. I then just have to pick the right CFLAGS/CXXFLAGS options for this, and pass it on to make.

@rubdos
Copy link

rubdos commented Jan 10, 2017

Would you guys like someone to go through the code and get rid of warnings? I just compiled this and I got a bit dizzy from them. E.g, returning an int in a void function might leak memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants