Skip to content

Commit

Permalink
Add extern to declaration in header file
Browse files Browse the repository at this point in the history
This is required to compile with gcc12
  • Loading branch information
AndreasHansson73 authored and HRio committed Jan 16, 2024
1 parent 7303de7 commit ca659d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/salt_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
salt_ret_t my_write(salt_io_channel_t *p_wchannel);
salt_ret_t my_read(salt_io_channel_t *p_rchannel);

salt_time_t my_time;
extern salt_time_t my_time;

#endif /* SALT_IO_H */

0 comments on commit ca659d3

Please sign in to comment.