Skip to content

Commit 92c069d

Browse files
Fix C++ compiler warning
1 parent 276caa7 commit 92c069d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

backend/regclient-napi/binding.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
],
1010
"conditions": [
1111
["OS=='linux'", {
12-
"libraries": [ "-lpthread", "-ldl" ]
12+
"libraries": [ "-lpthread", "-ldl" ],
13+
"cflags": [ "-Werror" ]
1314
}]
1415
],
1516
"libraries": [ "<!(pwd)/gobuild/main.a" ],

backend/regclient-napi/src/binding.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class GetImageInfoWorker : public AsyncWorker {
2323
private:
2424
std::string imageRef;
2525
std::string result;
26-
std::string overrideTLSHostname;
27-
std::string overrideTLSState;
2826
std::string username;
2927
std::string password;
28+
std::string overrideTLSHostname;
29+
std::string overrideTLSState;
3030
};
3131

3232
Value GetImageInfoWrapper(const CallbackInfo& info) {

0 commit comments

Comments
 (0)