Skip to content

Commit

Permalink
Rework entire code for correctness and potential bug fixes (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-topnotch authored Mar 16, 2024
1 parent 009f2f5 commit 765ec24
Show file tree
Hide file tree
Showing 81 changed files with 2,466 additions and 1,727 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ENDIF (${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
SET(requiredlibs)

IF(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wconversion")
IF(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0 AND NOT MINGW)
list(APPEND requiredlibs stdc++fs)
ENDIF()
Expand Down
2 changes: 1 addition & 1 deletion examples/BucketExists.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/ComposeObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/CopyObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketEncryption.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketLifecycle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketNotification.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketPolicy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketReplication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteBucketTags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteObjectLockConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DeleteObjectTags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DisableObjectLegalHold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/DownloadObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/EnableObjectLegalHold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketEncryption.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketLifecycle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketNotification.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketPolicy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketReplication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketTags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetBucketVersioning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetObjectLockConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetObjectProgress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetObjectRetention.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetObjectTags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetPresignedObjectUrl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/GetPresignedPostFormData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/IsObjectLegalHoldEnabled.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/ListBuckets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/ListObjects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/ListenBucketNotification.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/MakeBucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/PutObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/PutObjectProgress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/RemoveBucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/RemoveObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/RemoveObjects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/SelectObjectContent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "client.h"
#include "select.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/SetBucketEncryption.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/SetBucketLifecycle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/SetBucketNotification.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
2 changes: 1 addition & 1 deletion examples/SetBucketPolicy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "client.h"

int main(int argc, char* argv[]) {
int main() {
// Create S3 base URL.
minio::s3::BaseUrl base_url("play.min.io");

Expand Down
Loading

0 comments on commit 765ec24

Please sign in to comment.