Skip to content

Conversation

@editheman
Copy link
Contributor

This PR significantly improves the build reliability of vfdecrypt across different platforms and eliminates all compiler warnings for a clean build experience.

Changes

1. Improved Makefile for cross-platform compatibility

Created a robust Makefile that:

  • Adds proper OpenSSL detection via pkg-config with intelligent fallbacks
  • Supports multiple platforms with OS-specific adaptations
  • Handles common macOS package locations (Homebrew and MacPorts)
  • Implements flexible compiler settings with strict warning flags
  • Includes a dedicated debug target for development
  • Ensures clean builds with proper dependencies

2. Fixed compiler warnings in code

Addressed all compiler warnings by:

  • Fixed variable type mismatches in function parameters
  • Properly handled unused variables with appropriate casts
  • Corrected format string specifiers for various platform compatibility
  • Ensured consistent return values in all code paths
  • Added explicit initialization for potentially uninitialized variables

Benefits

  • vfdecrypt now builds consistently across different environments without manual configuration
  • Clean build output without warnings on standard compiler settings
  • Improved code quality and maintainability
  • Better developer experience with a dedicated debug target

Addressed all compiler warnings by:
- Fixed variable type mismatches in function parameters
- Properly handled unused variables with appropriate casts
- Corrected format string specifiers for various platform compatibility
- Ensured consistent return values in all code paths
- Added explicit initialization for potentially uninitialized variables

Build now completes cleanly without warnings on standard compiler settings.

Signed-off-by: editheman <edipana0409@gmail.com>
Created a robust Makefile that:
- Adds proper OpenSSL detection via pkg-config with intelligent fallbacks
- Supports multiple platforms with OS-specific adaptations
- Handles common macOS package locations (Homebrew and MacPorts)
- Implements flexible compiler settings with strict warning flags
- Includes a dedicated debug target for development
- Ensures clean builds with proper dependencies

This ensures vfdecrypt builds consistently across different environments without manual configuration.

Signed-off-by: editheman <edipana0409@gmail.com>
Copy link
Member

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Use a single commit. Squash both commits into a single one.

Are the Makefile and vfdecrypt.c picked up from somewhere else? If so, please mention the source.

Is this a draft PR? A draft PR is one where the author needs to do future work. Is this requiring future work from you?

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