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

Remove "const" to avoid error in Ubuntu 24.04 LTS #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sqrtpanda
Copy link

@sqrtpanda sqrtpanda commented Oct 31, 2024

In Ubuntu 24.04 LTS, running the build command colcon build --symlink-install results in errors.

noble@noble-MacBookPro:~/Documents$  colcon build --symlink-install
Starting >>> urg_node2
--- stderr: urg_node2                                
/home/noble/Documents/lidar/urg_node2/urg_library/current/src/urg_utils.c: In function ‘urg_delay’:
/home/noble/Documents/lidar/urg_node2/urg_library/current/src/urg_utils.c:224:5: warning: implicit declaration of function ‘usleep’; did you mean ‘urg_sleep’? [-Wimplicit-function-declaration]
  224 |     usleep(1000 * delay_msec);
      |     ^~~~~~
      |     urg_sleep
/home/noble/Documents/lidar/urg_node2/urg_library/current/src/urg_sensor.c:1349:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 1349 | static const int receive_II_command_response(urg_t *urg,
      |        ^~~~~
---
Finished <<< urg_node2 [16.3s]
 
Summary: 1 package finished [16.4s]
  1 package had stderr output: urg_node2

(Please disregard the implicit declaration error here, as it appears to have already been fixed in this repository.)

I'll submit a pull request here if this PR gets merged.

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

Successfully merging this pull request may close these issues.

1 participant