Skip to content

Conversation

@msaravanan77
Copy link

This commit addresses C standard compliance issues identified when building with Clang 18.1.3 and strict compiler flags.

Changes made:

  1. Added 'void' keyword to all function declarations with no parameters to comply with modern C standards (fixes -Wstrict-prototypes warnings)
  2. Removed unused 'flushed' variable in surface.c that was set but never used (fixes -Wunused-but-set-variable warning)

The code now builds cleanly with both GCC and Clang when using -Werror -Wstrict-prototypes flags.

JIRA Issue

https://issues.apache.org/jira/browse/GUACAMOLE-2136

This commit addresses C standard compliance issues identified when
building with Clang 18.1.3 and strict compiler flags.

Changes made:
1. Added 'void' keyword to all function declarations with no parameters
   to comply with modern C standards (fixes -Wstrict-prototypes warnings)
2. Removed unused 'flushed' variable in surface.c that was set but never
   used (fixes -Wunused-but-set-variable warning)

The code now builds cleanly with both GCC and Clang when using
-Werror -Wstrict-prototypes flags.
Copy link
Contributor

@necouchman necouchman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. @mike-jumper any concerns with merging this?

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.

2 participants